OSDN Git Service

staging: iio: ad7816: drop unnecessary initialization of variables
authorHardik Singh Rathore <hardiksingh.k@gmail.com>
Wed, 12 Dec 2018 17:57:07 +0000 (23:27 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Dec 2018 14:05:57 +0000 (14:05 +0000)
commitf1b753a0f866a834f5681506ac29b6ca0ee902b2
tree69e091a83feb8f307bcda26acdac13b1df148100
parent4b6374577fe751f60ffc24c7b95ce803a22b2476
staging: iio: ad7816: drop unnecessary initialization of variables

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 <hardiksingh.k@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7816.c