Re: [PATCH] staging: fieldbus: anybuss: Remove variables

2019-05-23 Thread Greg KH
On Fri, May 24, 2019 at 11:33:28AM +0530, Nishka Dasgupta wrote: > The local variable cd, used in multiple functions, is immediately passed > to another function call, whose result is returned. As that is the only > use of cd, it can be replaced with its variable. > Issue found with Coccinelle. >

[PATCH] staging: fieldbus: anybuss: Remove variables

2019-05-23 Thread Nishka Dasgupta
The local variable cd, used in multiple functions, is immediately passed to another function call, whose result is returned. As that is the only use of cd, it can be replaced with its variable. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/fieldbus/anybuss/host.