From: Jonathan Cameron Date: Fri, 3 Jan 2014 22:08:00 +0000 (+0000) Subject: iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=239670ef48dfff9cf07675acdb3bb7deee4853e1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Neil Brown Cc: Dan Carpenter --- 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,