iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch
authorJonathan Cameron <jic23@kernel.org>
Fri, 3 Jan 2014 22:08:00 +0000 (22:08 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Mar 2014 18:00:35 +0000 (18:00 +0000)
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>
drivers/iio/gyro/itg3200_core.c

index 4d3f3b92b361ef06ec57649f664205201b0cfc34..8295e318399f9874ccde4f4429a001141a4004be 100644 (file)
@@ -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,