From patchwork Sat Dec 30 21:07:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10137989 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 F392D6037D for ; Sat, 30 Dec 2017 21:07:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6FE528515 for ; Sat, 30 Dec 2017 21:07:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBD5D287A5; Sat, 30 Dec 2017 21:07:28 +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 9900728515 for ; Sat, 30 Dec 2017 21:07:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751037AbdL3VHQ (ORCPT ); Sat, 30 Dec 2017 16:07:16 -0500 Received: from mout.web.de ([217.72.192.78]:52827 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbdL3VHO (ORCPT ); Sat, 30 Dec 2017 16:07:14 -0500 Received: from [192.168.1.3] ([92.227.102.199]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MfHfy-1eJkH812Dq-00OodN; Sat, 30 Dec 2017 22:07:08 +0100 Subject: [PATCH 1/2] at76c50x-usb: Delete an error message for a failed memory allocation in at76_submit_rx_urb() From: SF Markus Elfring To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Andrew Zaborowski , Arvind Yadav , Geert Uytterhoeven , Kalle Valo , Kees Cook Cc: LKML , kernel-janitors@vger.kernel.org References: <1d76fe59-af15-ba4d-e05d-09dcd9ee38cd@users.sourceforge.net> Message-ID: Date: Sat, 30 Dec 2017 22:07:05 +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: <1d76fe59-af15-ba4d-e05d-09dcd9ee38cd@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:mFTdYWdWB4GWuXaw5A0ieLtguxzPTomdddyVp87xw17ZamzkMQI pytxIoUuWwlljdKKY2+2hW/TzmHSkDgPGd/2b9rAw6rjGTK6v50QlYxkshVWZWZRCGNQWW3 t5mVbnBseWx5vQ7E5bB0QyJvi1ZmgcOPBMZRmJ4kiAn2rg8ezRz2/semZROcSCO844kOMX2 lkvXxDV8b+2sq6wc9Mm4g== X-UI-Out-Filterresults: notjunk:1; V01:K0:3VR0Ae47h7E=:Sq4jYZPDL8SsfO/KO9y2qZ ZfFUVwNtsqT9kE2aMxG2pmceuW52R/yWYuHUV+yQYVI6MB8YE2TpriCh4ZRDr+pgDdxeKMi/f lm5Q4jzlD9h4UQNdbF3xWTaV/odEnTDrZR6++Q6hE7Ge0pBTOeIzty3OSp0KvHS20LHMesw+u xzeGbemNhWXeBYK4H6MUMVBazBGsYmAInW0dhvYx01veGVus/7eyqACGVR5WUMcAyADJ4KPzp 9KloJCQ/rUqlzTSDSu3sHGCojkDpzgAzqWnYHs+9xp+ey/ZJSPQneX+DWOSdXrmI46wOPyqgx IEhFEjiPvkqDF8ldWyxg7Ga6zlxRYPuzv3oebkRBa0duLiN046JrwDrnlKhQ9tpqT4hi3H45+ avVOZ8WTX4RbIiKpsEd3XOj+86EaOFGDP9AqxLsq6HrqHhoADjQVcXUPVPeqrrkvYSxVkoGGB OIdDXaKvtQ8YoxxN8lEB0y2fuuxyJRbJNHSXqP8fET6sRjXVk81neNFx/QpXX/HdTF2wROM3x QKH7syk3xz5H1e+y3IAMXPA3qhbKa4KC6Cs/XO38usoTA509hG81sxrYrZKG4nUCVu9rSevMK Bjba/8CwwiyX8PBUwH6709kciAnPnck97qNUwm/LB8GiXc/rs8umgbbsRfYcVX08gpS1i5Jfa x4fZYsdo7e+hlwZDuLjYumSGFkqUwVh8ODPqEZqYNSbCfk1Xe41Gp2r8etukdzyQLdVnQ8smm hw98jT0erxgf5IRntDqV1SnZnEkCiiETZgu1zMRLrRB2F3kT7JvCeHon4V6peenLyOF1an4hw BhDUSS6liCqGTs/P6hdlzTySB/fs3QC7Nc/nx3Ms+fnzqC7O2E= 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: Sat, 30 Dec 2017 21:50:12 +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/atmel/at76c50x-usb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/atmel/at76c50x-usb.c b/drivers/net/wireless/atmel/at76c50x-usb.c index ede89d4ffc88..2893d339b440 100644 --- a/drivers/net/wireless/atmel/at76c50x-usb.c +++ b/drivers/net/wireless/atmel/at76c50x-usb.c @@ -1223,8 +1223,6 @@ static int at76_submit_rx_urb(struct at76_priv *priv) if (!skb) { skb = dev_alloc_skb(sizeof(struct at76_rx_buffer)); if (!skb) { - wiphy_err(priv->hw->wiphy, - "cannot allocate rx skbuff\n"); ret = -ENOMEM; goto exit; }