diff options
author | Jonathan Cameron <jic23@kernel.org> | 2014-01-03 22:08:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-03-16 18:00:35 (GMT) |
commit | 239670ef48dfff9cf07675acdb3bb7deee4853e1 (patch) | |
tree | f0fc20ac52e76cabd88b3b3d02b3b3a37b5267ed /drivers | |
parent | ef4b4856593fc3d9d169bededdaf7acf62f83a52 (diff) | |
download | linux-239670ef48dfff9cf07675acdb3bb7deee4853e1.tar.xz |
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')
-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 4d3f3b9..8295e31 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, |