2017-12-31 21:11:44

by SF Markus Elfring

[permalink] [raw]
Subject: [PATCH] smsc95xx: Delete an error message for a failed memory allocation in smsc95xx_suspend()

From: Markus Elfring <[email protected]>
Date: Sun, 31 Dec 2017 22:06:49 +0100

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <[email protected]>
---
drivers/net/usb/smsc95xx.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 309b88acd3d0..5e6ea46358c8 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -1671,7 +1671,6 @@ static int smsc95xx_suspend(struct usb_interface *intf, pm_message_t message)
int i, filter = 0;

if (!filter_mask) {
- netdev_warn(dev->net, "Unable to allocate filter_mask\n");
ret = -ENOMEM;
goto done;
}
--
2.15.1