Skip to content

Commit 3ea98d4

Browse files
3x380Vgregkh
authored andcommitted
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>
1 parent 91809d2 commit 3ea98d4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/eisa/eisa-bus.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,8 @@ static int __init eisa_probe(struct eisa_root_device *root)
324324
* here, simply fail, unless root->force_probe is set. */
325325

326326
edev = kzalloc(sizeof(*edev), GFP_KERNEL);
327-
if (!edev) {
328-
dev_err(root->dev, "EISA: Couldn't allocate mainboard slot\n");
327+
if (!edev)
329328
return -ENOMEM;
330-
}
331329

332330
if (eisa_request_resources(root, edev, 0)) {
333331
dev_warn(root->dev,

0 commit comments

Comments
 (0)