aboutsummaryrefslogtreecommitdiff
path: root/drivers/eisa
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2018-01-17 10:45:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-23 09:04:10 +0100
commit3ea98d470d60695b500e246372dc929aa4e4b938 (patch)
tree482a7f4f9525a9518c6cd6018fbbf9f2f5c42b34 /drivers/eisa
parent91809d22c8a1b6c05b9172add17489aa9cfb7309 (diff)
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: Ladislav Michl <ladis@linux-mips.org> Acked-by: Marc Zyngier <maz@misterjones.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/eisa')
-rw-r--r--drivers/eisa/eisa-bus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c
index 4155507052bd..1e8062f6dbfc 100644
--- a/drivers/eisa/eisa-bus.c
+++ b/drivers/eisa/eisa-bus.c
@@ -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,