From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: bonding: Delete an error message for a failed memory allocation in bond_update_slave_arr() Date: Wed, 03 Jan 2018 13:58:32 -0800 Message-ID: <1515016712.131759.0.camel@gmail.com> References: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: linux-netdev , Andy Gospodarek , Jay Vosburgh , Veaceslav Falico , LKML , kernel-janitors@vger.kernel.org To: Mahesh Bandewar =?UTF-8?Q?=28=E0=A4=AE=E0=A4=B9=E0=A5=87=E0=A4=B6_?= =?UTF-8?Q?=E0=A4=AC=E0=A4=82=E0=A4=A1=E0=A5=87=E0=A4=B5=E0=A4=BE?= =?UTF-8?Q?=E0=A4=B0=29?= , SF Markus Elfring Return-path: In-Reply-To: Sender: kernel-janitors-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, 2018-01-03 at 11:28 -0800, Mahesh Bandewar (महेश बंडेवार) wrote: > On Wed, Jan 3, 2018 at 12:45 AM, SF Markus Elfring > wrote: > > > > 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? > > > > * Is it redundant? > > > > * Would a Linux allocation failure report be already sufficient here? > > > > If you see 8 out of 9 call sites in this file ignore the return value. > This message in the log could give a clue when debugging. Unless it's > spamming it's not harmful, or is it? A failed kzalloc() would already give a complete stack trace. Really the pr_err() adds no value here.