EISA: Delete error message for a failed memory allocation in eisa_probe()
authorLadislav Michl <ladis@linux-mips.org>
Wed, 17 Jan 2018 09:45:01 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jan 2018 08:04:10 +0000 (09:04 +0100)
Omit extra message for a memory allocation failure in probe function.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/eisa/eisa-bus.c

index 4155507052bd1937173e86a7bb869e843215e714..1e8062f6dbfcaf23d484ab1880e222d2e99f7194 100644 (file)
@@ -324,10 +324,8 @@ static int __init eisa_probe(struct eisa_root_device *root)
         * here, simply fail, unless root->force_probe is set. */
 
        edev = kzalloc(sizeof(*edev), GFP_KERNEL);
-       if (!edev) {
-               dev_err(root->dev, "EISA: Couldn't allocate mainboard slot\n");
+       if (!edev)
                return -ENOMEM;
-       }
 
        if (eisa_request_resources(root, edev, 0)) {
                dev_warn(root->dev,