Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751602AbeACUME (ORCPT + 1 other); Wed, 3 Jan 2018 15:12:04 -0500 Received: from mout.web.de ([217.72.192.78]:58746 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbeACUMA (ORCPT ); Wed, 3 Jan 2018 15:12:00 -0500 Subject: [PATCH 1/2] wireless: libertas_tf: Delete an error message for a failed memory allocation in __if_usb_submit_rx_urb() From: SF Markus Elfring To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Arvind Yadav , Kalle Valo , Kees Cook Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Wed, 3 Jan 2018 21:11:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:SsqxOKizUpsVoounGrttglGES6Pcl1p15fuC8cQVI9D8P0ryF3Y C2O6GzLYLMOL5fPOGqi4DOn7DoMyPaKjLd0ERFpnQd1ccfYunBc78G8t1cG6dkoJ5LAVoya 7GqHQhEBkyo3KE/U5vv+syOHiwW5h8PpbjY2rkIlNgIFWQWZPr1H9RuYQdgxjuKCMqJ+KZY cAe3C6FX96UFA03VC5ACQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:l5DwkW5Iono=:hClE2BNwSrkKND1MU3nlIJ 3x7JBMte5fsTa96jS0nazlJ3jeyXEr1J6DGN9cjqF7ReTRofxprT9Z6K9OPK3SFqGre525xu7 HsEQtpD37JASl3tiSh6DEL0Uo0L89i4M0ldKh2DVgLbwqfH1d6949rlCunmSBXASyywM+IjcW npdDk7w98TntcHRkgqCub/EGcXv/NnqFKxFgA/QbyY92MfoS4z+b7j1C37kNkRmON3raiqn3Q HgDEJ23+8LRRKfLNU2td9bRothfw4Ag6VzTYTpMBGTwtrZNrHpOl96Ii3dUJTXoWMdW9PLAp1 OEYPzXe0gARpwqOtMpwH6oaT3ACmZFuG2OzaGs1CYLKCoDQT0JjpTSsCWAHSmx0hTRE0CSsE/ u47VNAsaCNefku9Ykc41hHprhq+r0nqihK6r+ZlpLR25Y8Zqfymn2I1r7lmM0vGpFR12eOxER nwCKfKOtjIV16dStyemwrHRzuAXNxhAnvZ46zwJmxW96U/ww3/EDbeJckFK0//5v1rT16DDpN IZ1KcRYMFRhRVDEGP9Kz142IQSl7ha/1QaajlB1GdUOgo2Nsfd0l1I6JDRzagc7f3bHVPokxI L2YAlUa9k6X+rj9WRfr/rLF7vz7YXTq7vtX7stmZ3SFOLL/WUinwALcyMkPI5bqGXJTC07Ugy wMAUQcp5S23T4wmmGDclp7pNvE8r3eR57+15cxXFF3y4N3mlBoQEWY5LPOFzUbuVYzA6/wXpm TEuWBzVBwxNT7NSOp+x6h4/DFd725DWSBIuufYjhceorv08l9juG4bXIAk0HWbi4MQ9SpI5Yp ViV4NKJ2DVPuz5vYg6o/jBvqXLs2Wr61Afy9z2eWQZqqDo0yTE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Wed, 3 Jan 2018 20:55:10 +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 --- drivers/net/wireless/marvell/libertas_tf/if_usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/if_usb.c b/drivers/net/wireless/marvell/libertas_tf/if_usb.c index 5153922e7ce1..9eebc84cd15a 100644 --- a/drivers/net/wireless/marvell/libertas_tf/if_usb.c +++ b/drivers/net/wireless/marvell/libertas_tf/if_usb.c @@ -420,7 +420,6 @@ static int __if_usb_submit_rx_urb(struct if_usb_card *cardp, skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE); if (!skb) { - pr_err("No free skb\n"); lbtf_deb_leave(LBTF_DEB_USB); return -1; } -- 2.15.1