mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
b912c6564c
commit
0859fdd319
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue