From patchwork Sat Dec 30 20:33:44 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: 10137913 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 1D6216037D for ; Sat, 30 Dec 2017 20:34:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FBD3287A7 for ; Sat, 30 Dec 2017 20:34:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04AB9287A9; Sat, 30 Dec 2017 20:34:30 +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 C3C6C287A7 for ; Sat, 30 Dec 2017 20:34:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750945AbdL3UeM (ORCPT ); Sat, 30 Dec 2017 15:34:12 -0500 Received: from mout.web.de ([212.227.17.12]:49784 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750865AbdL3UeL (ORCPT ); Sat, 30 Dec 2017 15:34:11 -0500 Received: from [192.168.1.3] ([92.227.102.199]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MINAx-1eVeo21wD9-004D74; Sat, 30 Dec 2017 21:33:45 +0100 To: b43-dev@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Kalle Valo Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] wireless: b43: Delete an error message for a failed memory allocation in b43_sdio_probe() Message-ID: <175d361f-0c00-2a32-c860-a5ad198e74ba@users.sourceforge.net> Date: Sat, 30 Dec 2017 21:33:44 +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:Jz+ee1yDtbVlc56iSYrTv95AFi6aWOawEG4Ns/s+4xCayo6Y5WK Q9lJtSOmdW+MxIgsGAmWe3eS9UyGg3++obCL840A3SwmutfLlRpvOSsX42mrAFzFhSbvK8Y H1hd9VsH8C3fcK0g81/6R/erZJ8R+v6QBuclqkfFWVDBts869838hvDXFKvR+L0ZOBupEgR BSC+Usaaj1/kzY2fDVg8A== X-UI-Out-Filterresults: notjunk:1; V01:K0:tAL+v8/E5Bg=:BDZn0h8nJr+46/4MMGfm4C g6IWQB92yf+xWqDfZDP7iIZ7csJQh0QfHeHjlhtx4ZpaghDwYZYSNUjNUmRYdnVA6HlJUQR5z qkDvl6W2Wi3rKaXTTbKrEJ+QbX0mLVont56TcuKzrc1dXYGpAWl+T141oKE8FxT6TY1f1S86r 3GvgepJws5+WYyaoLYtZ4npm998aMQuzjagjz0wGYu+PHCwS3yGoS/hmjyFPE9rJgR1X07z7M EWHCYC/cw+n2PpBhkZROVolKwCBNz7hzQoM/pOd+OpQU4x698iwPmdXaz8KHJsoSUamQVIkxp 2uGg1pF0xvmiFJrnaAerljfQty3AQFBLWQJm6N9QZ72vz/pJqcPyR3OHx+oE5QsyI0F7CGXr1 PazQLHP15wI5SKkkUqORbDIGixXXkh2VjHSltHTlzMYkeTAMiyb+9/9k59Hy37XIpUZaMZb2K kgHKh6REJztQSMEV+LGGDBkjo4TK09zVCFxnYeIa5hCz/jE9J0ffKBeGkDD+MjgFM6oUWFYrh wTO638MMDfQrPShcHMxgTCmv/hgz9mhRSO8npVPJfftTZ+vUf3gvz5HgMn5dBRQq+8MbJiskp Xm6R7QMZ2JAWuvKtaw4zcaMfLXXalRgMiL7bttT9uBSxV1FLUGDO/UfG5hnGNbFc4G/6GWGuT vs+LDK4xbgUE6kPRhbVYqWOyPpPjQF++cCnOhDfS6og6SRNYC09EqQtTNyQato6VIb7n2GDRw V6Ex36VM8XHQEdM23Shw9Hf1VUAfm8Q4ofYjWK7sQpJeEwFNgO7eZVjupyRtg3pKxMFVtIkQQ 1fNUTxdh732IeFFBWgJS1fJfsEAiQBeqjFXClU3vwJrI7ilrlU= 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:23:47 +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/broadcom/b43/sdio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43/sdio.c b/drivers/net/wireless/broadcom/b43/sdio.c index 59a521800694..5a6dbcf170f9 100644 --- a/drivers/net/wireless/broadcom/b43/sdio.c +++ b/drivers/net/wireless/broadcom/b43/sdio.c @@ -146,7 +146,6 @@ static int b43_sdio_probe(struct sdio_func *func, sdio = kzalloc(sizeof(*sdio), GFP_KERNEL); if (!sdio) { error = -ENOMEM; - dev_err(&func->dev, "failed to allocate ssb bus\n"); goto err_disable_func; } error = ssb_bus_sdiobus_register(&sdio->ssb, func,