Re: [BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-03 Thread Baolin Wang
On Wed, 4 Sep 2019 at 02:33, Greg KH wrote: > > On Tue, Sep 03, 2019 at 11:52:06AM -0300, Marcelo Ricardo Leitner wrote: > > On Tue, Sep 03, 2019 at 02:58:16PM +0800, Baolin Wang wrote: > > > From: Hariprasad Kelam > > > > > > This patch removes NULL checks before calling kfree. > > > > > >

Re: [BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-03 Thread Greg KH
On Tue, Sep 03, 2019 at 11:52:06AM -0300, Marcelo Ricardo Leitner wrote: > On Tue, Sep 03, 2019 at 02:58:16PM +0800, Baolin Wang wrote: > > From: Hariprasad Kelam > > > > This patch removes NULL checks before calling kfree. > > > > fixes below issues reported by coccicheck > >

Re: [BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-03 Thread Marcelo Ricardo Leitner
On Tue, Sep 03, 2019 at 02:58:16PM +0800, Baolin Wang wrote: > From: Hariprasad Kelam > > This patch removes NULL checks before calling kfree. > > fixes below issues reported by coccicheck > net/sctp/sm_make_chunk.c:2586:3-8: WARNING: NULL check before some > freeing functions is not needed. >

[BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-03 Thread Baolin Wang
From: Hariprasad Kelam This patch removes NULL checks before calling kfree. fixes below issues reported by coccicheck net/sctp/sm_make_chunk.c:2586:3-8: WARNING: NULL check before some freeing functions is not needed. net/sctp/sm_make_chunk.c:2652:3-8: WARNING: NULL check before some freeing