From patchwork Wed Jan 3 20:11:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10143335 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E72B6034B for ; Wed, 3 Jan 2018 20:35:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03A662930B for ; Wed, 3 Jan 2018 20:35:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC36E29310; Wed, 3 Jan 2018 20:35:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4D4D29266 for ; Wed, 3 Jan 2018 20:35:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbeACUMC (ORCPT ); Wed, 3 Jan 2018 15:12:02 -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 Received: from [192.168.1.3] ([77.182.96.2]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LfRzh-1fGpKV32aH-00p6xW; Wed, 03 Jan 2018 21:11:54 +0100 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-Language: en-GB 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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }