Re: [PATCH] net: caif: remove redundant null check on frontpkt

2018-09-17 Thread David Miller
From: Colin King Date: Fri, 14 Sep 2018 18:19:16 +0100 > From: Colin Ian King > > It is impossible for frontpkt to be null at the point of the null > check because it has been assigned from rearpkt and there is no > way realpkt can be null at the point of the assignment because > of the sanity

Re: [PATCH] net: caif: remove redundant null check on frontpkt

2018-09-14 Thread Colin Ian King
On 14/09/18 18:54, Sergei Shtylyov wrote: > Hello! > > On 09/14/2018 08:19 PM, Colin King wrote: > >> From: Colin Ian King >> >> It is impossible for frontpkt to be null at the point of the null >> check because it has been assigned from rearpkt and there is no >> way realpkt can be null at the

Re: [PATCH] net: caif: remove redundant null check on frontpkt

2018-09-14 Thread Sergei Shtylyov
Hello! On 09/14/2018 08:19 PM, Colin King wrote: > From: Colin Ian King > > It is impossible for frontpkt to be null at the point of the null > check because it has been assigned from rearpkt and there is no > way realpkt can be null at the point of the assignment because rearpkt? > of the

[PATCH] net: caif: remove redundant null check on frontpkt

2018-09-14 Thread Colin King
From: Colin Ian King It is impossible for frontpkt to be null at the point of the null check because it has been assigned from rearpkt and there is no way realpkt can be null at the point of the assignment because of the sanity checking and exit paths taken previously. Remove the redundant null c