diff options
author | Jonathan Cameron <jic23@kernel.org> | 2014-01-03 22:08:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-03-16 18:00:35 +0000 |
commit | 239670ef48dfff9cf07675acdb3bb7deee4853e1 (patch) | |
tree | f0fc20ac52e76cabd88b3b3d02b3b3a37b5267ed /drivers/iio/gyro | |
parent | ef4b4856593fc3d9d169bededdaf7acf62f83a52 (diff) | |
download | linux-239670ef48dfff9cf07675acdb3bb7deee4853e1.tar.bz2 |
iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch
CHECK drivers/iio/gyro/itg3200_core.c
drivers/iio/gyro/itg3200_core.c:114 itg3200_read_raw() info: ignoring unreachable code.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Diffstat (limited to 'drivers/iio/gyro')
-rw-r--r-- | drivers/iio/gyro/itg3200_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/gyro/itg3200_core.c b/drivers/iio/gyro/itg3200_core.c index 4d3f3b92b361..8295e318399f 100644 --- a/drivers/iio/gyro/itg3200_core.c +++ b/drivers/iio/gyro/itg3200_core.c @@ -110,8 +110,6 @@ static int itg3200_read_raw(struct iio_dev *indio_dev, default: return -EINVAL; } - - return ret; } static ssize_t itg3200_read_frequency(struct device *dev, |