Netdev List
 help / color / mirror / Atom feed
From: SF Markus Elfring <elfring@users.sourceforge.net>
To: linux-usb@vger.kernel.org, netdev@vger.kernel.org,
	UNGLinuxDriver@microchip.com,
	Steve Glendinning <steve.glendinning@shawell.net>
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: [PATCH] smsc95xx: Delete an error message for a failed memory allocation in smsc95xx_suspend()
Date: Sun, 31 Dec 2017 22:11:33 +0100	[thread overview]
Message-ID: <21618f18-65a0-3b07-dd37-7c1a29320820@users.sourceforge.net> (raw)

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

                 reply	other threads:[~2017-12-31 21:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21618f18-65a0-3b07-dd37-7c1a29320820@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=steve.glendinning@shawell.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox