Skip to content

Commit

Permalink
EISA: Delete error message for a failed memory allocation in eisa_pro…
Browse files Browse the repository at this point in the history
…be()

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>
  • Loading branch information
3x380V authored and gregkh committed Jan 23, 2018
1 parent 91809d2 commit 3ea98d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/eisa/eisa-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3ea98d4

Please sign in to comment.