Commit 3ea98d47 authored by Ladislav Michl's avatar Ladislav Michl Committed by Greg Kroah-Hartman

EISA: Delete error message for a failed memory allocation in eisa_probe()

Omit extra message for a memory allocation failure in probe function.
Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Acked-by: default avatarMarc Zyngier <maz@misterjones.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 91809d22
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment