From patchwork Fri Dec 29 21:40:10 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: 10137409 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 32D6160212 for ; Fri, 29 Dec 2017 21:40:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 282102C5A0 for ; Fri, 29 Dec 2017 21:40:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19AB02C5D7; Fri, 29 Dec 2017 21:40:36 +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 D27822C5A0 for ; Fri, 29 Dec 2017 21:40:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750946AbdL2VkS (ORCPT ); Fri, 29 Dec 2017 16:40:18 -0500 Received: from mout.web.de ([212.227.15.3]:59051 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbdL2VkQ (ORCPT ); Fri, 29 Dec 2017 16:40:16 -0500 Received: from [192.168.1.3] ([92.227.72.214]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Ld2nY-1fCrZz3jrk-00iFGY; Fri, 29 Dec 2017 22:40:11 +0100 To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Christian Lamparter , Kalle Valo Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] p54spi: Delete an error message for a failed memory allocation in p54spi_rx() Message-ID: Date: Fri, 29 Dec 2017 22:40:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:XSoY0lgDgSE2cz5vTd2+8zIg4fTK375OhkgdUPQs/HS2wW+4Yzr GVJL5zF1l3DIcYgb+NmyGZ+pEMAYxlI7quYog2aCb5/fpypajDxKy0plZRCPbvMzejo+Q02 4hn6gY2KrVCHQP4eRjVF0mrE6wyB7qpMMOIrlOtv0Iu0tMemRODNjeivigtvQ/Yo+ANZtl4 I3UjnqzS0zdehRsNGAzOQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:8Bcx3aX3ixw=:cEI4XnzLtXBtQ947m+r6K0 2sUJ6dKQc4XCShLAXw0+SxXvAiBbeLu4LroOG08+zr4iBVfswkgj1h6gtEdz+sJgulndgSeOl +Za+N0WD8jx6xDESrwlsl54XLDNpJtU/b/GD/Gxj6zxEv4zSLcO6DZKqu/h9dbi1Z8zmiNCTx kCl2CL7HwlDegojFdOFm3VB7XEM2BmhGj48LknSfh19o+dBM1c/CNbgM9eJzx1dFhwNY8k2GH A2aG+rJ5Bq/48HzSwa7fslyDFBoSAyNM67mXYYSCAYLwbR7km4VRGS7fJeEz0zhk9c8mZP6aY e77O41D0cZ36zSslkHn5J2iFNx0U1gsTNRgMllEusJMYqUPc6yh6wYZYlZBFthBUcZBS2HZmr q3P44pu9Wf6G2EV9GffVwLi+AW8gFiULJO2zHQtLVtygkl4vjI+K2JheIfSPOYBeDf+XKzRbs FM1QUuuAKR4nAjpzjQO0uFddSFaSRLOMLR1jYJjt5MVV8UYFKQJdeEi9n40VSLECG7G59ZR6B Yymibmd+00uaBu3z26tJLj8hDplh/ohRA3M4oYON/cRMNLMloKS1h2VAzrTzpPHOPHo0IshP7 0KJWps6vYi0UvHwAkyc+yUdb61emKm1/sxRjHubPF7urgWysE90BV7jPDr1up5spr1lPPEy6O d1lukmLDmNJJxKQ5dgG2vZUwjpysM8yCRMcMSnzBOw1X358fgA6roTfpeH3UmZaeJdVR5n5kn qs/qv5Kq2zt/zGNVZlSHPgQcYteBCzorwORqfc15nL73D2FH132NM/wNU/RoEtow2527uAgi9 +YJ5YQfUFPVtyGyBxy4WTyP8ysW1gjVAr5tSR4rAwm1LUq677A= 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: Fri, 29 Dec 2017 22:33: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/intersil/p54/p54spi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/intersil/p54/p54spi.c b/drivers/net/wireless/intersil/p54/p54spi.c index e41bf042352e..900cfaacf25e 100644 --- a/drivers/net/wireless/intersil/p54/p54spi.c +++ b/drivers/net/wireless/intersil/p54/p54spi.c @@ -367,7 +367,6 @@ static int p54spi_rx(struct p54s_priv *priv) skb = dev_alloc_skb(len + 4); if (!skb) { p54spi_sleep(priv); - dev_err(&priv->spi->dev, "could not alloc skb"); return -ENOMEM; }