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

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 01:52:29PM +0530, Nishka Dasgupta wrote: > > > On 23/05/19 12:52 PM, Greg KH wrote: > > On Thu, May 23, 2019 at 12:35:26PM +0530, Nishka Dasgupta wrote: > > > Variable client, assigned to priv->client, is used only once in a > > > function argument; hence, it can be remove

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

2019-05-23 Thread Nishka Dasgupta
On 23/05/19 12:52 PM, Greg KH wrote: On Thu, May 23, 2019 at 12:35:26PM +0530, Nishka Dasgupta wrote: Variable client, assigned to priv->client, is used only once in a function argument; hence, it can be removed and the function argument replaced with priv->client directly. Issue found with C

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

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 12:35:26PM +0530, Nishka Dasgupta wrote: > Variable client, assigned to priv->client, is used only once in a > function argument; hence, it can be removed and the function argument > replaced with priv->client directly. > Issue found with Coccinelle. > > Signed-off-by: Nish

[PATCH] staging: fieldbus: anybuss: Remove variable

2019-05-23 Thread Nishka Dasgupta
Variable client, assigned to priv->client, is used only once in a function argument; hence, it can be removed and the function argument replaced with priv->client directly. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/fieldbus/anybuss/hms-profinet.c | 4 +--- 1