Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751515AbeACHAt (ORCPT + 1 other); Wed, 3 Jan 2018 02:00:49 -0500 Received: from mail-yb0-f196.google.com ([209.85.213.196]:44688 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751167AbeACHAr (ORCPT ); Wed, 3 Jan 2018 02:00:47 -0500 X-Google-Smtp-Source: ACJfBotsN85r8lKtAiivxVaGxG3HaEnnH0wdk9Jllv2zOYwhV0mWBXsWVf2A7ikKuB0N1c5ysApWOR0dJqw+ywx2nWk= MIME-Version: 1.0 In-Reply-To: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> References: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> From: =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS14KS+4KSwKQ==?= Date: Tue, 2 Jan 2018 23:00:25 -0800 Message-ID: Subject: Re: [PATCH] bonding: Delete an error message for a failed memory allocation in bond_update_slave_arr() To: SF Markus Elfring Cc: linux-netdev , Andy Gospodarek , Jay Vosburgh , Veaceslav Falico , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 1, 2018 at 8:07 AM, SF Markus Elfring wrote: > 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. > What is the issue with this message? > 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 >