[lkml]   [2020]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr
Dear Jakub,

On Sun, Nov 8, 2020 at 7:48 AM Jakub Kicinski <> wrote:
> On Fri, 6 Nov 2020 01:42:37 -0500 wrote:
> > From: Menglong Dong <>
> >
> > The initialization for 'err' with '-EINVAL' is redundant and
> > can be removed, as it is updated soon.
> >
> > Signed-off-by: Menglong Dong <>
> How many changes like this are there in the kernel right now?
> I'm afraid that if there are too many it's not worth the effort.
> Also - what tool do you use to find those, we need to make sure new
> instances don't get into the tree.

I didn't use any tools. Maybe some general tools, such as kw,
coverity, coccicheck,
are able to find these changes(as far as I know, they can).

In fact, I find these changes by my eyes. I believe 'err' is the most
likely victim
and checked every usage of it in 'net' directory. Here are all the
changes I found,
and I think there won't be too many.

Menglong Dong

 \ /
  Last update: 2020-11-08 01:44    [W:0.124 / U:36.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site