Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751556AbeAAQHZ (ORCPT + 1 other); Mon, 1 Jan 2018 11:07:25 -0500 Received: from mout.web.de ([212.227.15.14]:56975 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeAAQHY (ORCPT ); Mon, 1 Jan 2018 11:07:24 -0500 To: netdev@vger.kernel.org, Andy Gospodarek , Jay Vosburgh , Veaceslav Falico Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] bonding: Delete an error message for a failed memory allocation in bond_update_slave_arr() Message-ID: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> Date: Mon, 1 Jan 2018 17:07:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:VN9WqIM7KlxB+cQDiDnA5Pbn6HN8TwAaD/rq0Dp6Bstfs3UfRxl 40k9dsX2umif2zK2mpwlGe/xo0o2dGLgcxRe1Dw5YK5NSNQFnIrg//Iu21UlRBiCBlNPgs1 4bcalTLfeBZDWYosJ4UMY0UyEZJslui4NkdJsGTpAhNN5NlzBuPtV4VG+34LJMh4c7n6oD6 T1XoQLH42hDB+eeuLURwg== X-UI-Out-Filterresults: notjunk:1;V01:K0:EorSkxQRDAk=:Aagixg+fJJtBdSuOOfakGE OetNhAbCYchCuxtJL/XisCa/AvQg84l/jh/QTfA2fpbU+OFHtnOk84faYobrwRmMBHmqHYhAV rl8+U1eNBQINvotcbSPZdTe5ohrGSPhINFoLnkyugNiJ2yAQCExtAtEnkDHkzsD9S9XCfppcm 7/DLCxZewlLbtZHiywxgVVZmnlXD4ajFmcmukdNjy5EJNJ+JxnMF2QDahEEDOsvuemselaSeA fFtp7w4lrIJuva+XYqrHS0/mjb2y36qArLaPE+t2+GZ130RUm1lua4dz3IjuJmBtYsJiLYa97 G1guGKdUiTKpF3Ps9Ks07lC5lNOuqc7ZNtHMpmm3baDXjoWtHjIq6exnxynFxHUwmMKtc8MCq DkzPqZAzhFi2DBTDN7MpdGWrlyfX+djgif5mnrZnl8QqcLP5gUXIrfjVmAbYj4rjNs6UOx+Hs SCMx75QVthxZnVa3D1NU8E8t3H4gELT1kXpZHhfeQ02grk/4QUfNmPLMgqkLrAtCoZFqGo207 qJoxgvzqVaEDuZ1oB3VzPU0qYdIpf9iXiE2gMqJvVeUvD7gYIzLMtnozF3uQo8jqFy8VmlxJY EHdoPs0IgarRHtUfc6OQZKxAlKeRrCdPWWGRNCKulJAlO/RGPAbW66QLpCpe5w+byXAOJWZ5f 03llR8jpipDCqxjRjT1loHGmYgPv33vLiA8qkh6r8Nl2t/Ctlnc60NIVNEUi+UXgMCBFd5nVJ O394pJw3GJj1lJqle4aRTy27ZJ9+l28CLJFiUupV6SQflwiYC5Ifaaj1iDcQgaYbOrVye8NSs eoI3bEmQ3vEgZKvFXOqQ0aiJ5N2US5RizwYCUP3/3jQzcy0haA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Mon, 1 Jan 2018 17:00:04 +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/bonding/bond_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index c669554d70bb..a96e0c9cc4bf 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -3910,7 +3910,6 @@ int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave) GFP_KERNEL); if (!new_arr) { ret = -ENOMEM; - pr_err("Failed to build slave-array.\n"); goto out; } if (BOND_MODE(bond) == BOND_MODE_8023AD) { -- 2.15.1