Re: [PATCH] staging: iio: ad7816: drop unnecessary initialization of variables

2018-12-16 Thread Jonathan Cameron
On Wed, 12 Dec 2018 23:27:07 +0530 Hardik Singh Rathore wrote: > Initialization is unnecessary when the variable is written before it is > read. There were some occasions in which the driver would initialize `ret' > during declaration without need. > > Signed-off-by: Hardik Singh Rathore Applie

[PATCH] staging: iio: ad7816: drop unnecessary initialization of variables

2018-12-12 Thread Hardik Singh Rathore
Initialization is unnecessary when the variable is written before it is read. There were some occasions in which the driver would initialize `ret' during declaration without need. Signed-off-by: Hardik Singh Rathore --- drivers/staging/iio/adc/ad7816.c | 7 +++ 1 file changed, 3 insertions(+