Netdev List
 help / color / mirror / Atom feed
* [PATCH] smsc95xx: Delete an error message for a failed memory allocation in smsc95xx_suspend()
@ 2017-12-31 21:11 SF Markus Elfring
  0 siblings, 0 replies; only message in thread
From: SF Markus Elfring @ 2017-12-31 21:11 UTC (permalink / raw)
  To: linux-usb, netdev, UNGLinuxDriver, Steve Glendinning
  Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-31 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 21:11 [PATCH] smsc95xx: Delete an error message for a failed memory allocation in smsc95xx_suspend() SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox