]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: iio: tsl2583: remove unnecessary variable initialization
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:39 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:32 +0000 (13:07 +0000)
The ret variable in tsl2583_suspend() and tsl2583_resume() was
initialized to 0. This is not necessary so this patch removes the
initialization.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c

index ee65a909c8a5f67d78cb5c6456fe060ec0dd75a4..971d9264e7a13a9aa5944d059bdc36fa7e00fe36 100644 (file)
@@ -849,7 +849,7 @@ static int __maybe_unused tsl2583_suspend(struct device *dev)
 {
        struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));
        struct tsl2583_chip *chip = iio_priv(indio_dev);
-       int ret = 0;
+       int ret;
 
        mutex_lock(&chip->als_mutex);
 
@@ -865,7 +865,7 @@ static int __maybe_unused tsl2583_resume(struct device *dev)
 {
        struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));
        struct tsl2583_chip *chip = iio_priv(indio_dev);
-       int ret = 0;
+       int ret;
 
        mutex_lock(&chip->als_mutex);