diff options
author | Brian Masney <masneyb@onstation.org> | 2016-11-12 13:19:39 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-13 13:07:32 +0000 |
commit | 0859fdd3198d45b81aa6908a1647cd727dabffd9 (patch) | |
tree | fa2c7d2d3fca0c515f5fe5f71d617f9feee6a5d0 | |
parent | b912c6564c2973ce0cd24f6d5094f36528eb8eae (diff) | |
download | linux-0859fdd3198d45b81aa6908a1647cd727dabffd9.tar.gz linux-0859fdd3198d45b81aa6908a1647cd727dabffd9.tar.bz2 linux-0859fdd3198d45b81aa6908a1647cd727dabffd9.zip |
staging: iio: tsl2583: remove unnecessary variable initialization
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>
-rw-r--r-- | drivers/staging/iio/light/tsl2583.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c index ee65a909c8a5..971d9264e7a1 100644 --- a/drivers/staging/iio/light/tsl2583.c +++ b/drivers/staging/iio/light/tsl2583.c @@ -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); |