Re: [PATCH] staging: ks7010: Remove initialisation

2019-05-24 Thread Greg KH
On Fri, May 24, 2019 at 12:31:19PM +0530, Nishka Dasgupta wrote: > On 24/05/19 12:22 PM, Greg KH wrote: > > On Fri, May 24, 2019 at 11:26:02AM +0530, Nishka Dasgupta wrote: > > > As the initial value of the return variable result is never used, it can > > > be removed. > > > Issue found with

Re: [PATCH] staging: ks7010: Remove initialisation

2019-05-24 Thread Dan Carpenter
On Fri, May 24, 2019 at 11:22:38AM +0530, Nishka Dasgupta wrote: > The initial value of return variable ret is never used, so it can be > removed. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta > --- > drivers/staging/ks7010/ks_hostif.c | 2 +- > 1 file changed, 1

Re: [PATCH] staging: ks7010: Remove initialisation

2019-05-24 Thread Nishka Dasgupta
On 24/05/19 12:22 PM, Greg KH wrote: On Fri, May 24, 2019 at 11:26:02AM +0530, Nishka Dasgupta wrote: As the initial value of the return variable result is never used, it can be removed. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/ks7010/ks7010_sdio.c | 2

Re: [PATCH] staging: ks7010: Remove initialisation

2019-05-24 Thread Greg KH
On Fri, May 24, 2019 at 11:26:02AM +0530, Nishka Dasgupta wrote: > As the initial value of the return variable result is never used, it can > be removed. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta > --- > drivers/staging/ks7010/ks7010_sdio.c | 2 +- > 1 file changed, 1

[PATCH] staging: ks7010: Remove initialisation

2019-05-23 Thread Nishka Dasgupta
As the initial value of the return variable result is never used, it can be removed. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/ks7010/ks7010_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c

[PATCH] staging: ks7010: Remove initialisation

2019-05-23 Thread Nishka Dasgupta
The initial value of return variable ret is never used, so it can be removed. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_hostif.c