diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-08-10 12:36:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-16 15:24:35 -0400 |
commit | f09906f43b8a0d52e3321db7d6f9d031097b0bc9 (patch) | |
tree | 5f39f0efb356cb3f93ca0544dc315e90918e111c /drivers | |
parent | 87a0c1574d2fd478c24e841c96f5019e5b44762f (diff) |
staging:iio:ad7192: Add missing break in switch statement
Without the break statement we fall right through to the default case and return
an error value.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/adc/ad7192.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index 22c3923d55eb..b9a74425ff75 100644 --- a/drivers/staging/iio/adc/ad7192.c +++ b/drivers/staging/iio/adc/ad7192.c | |||
@@ -890,7 +890,7 @@ static int ad7192_write_raw(struct iio_dev *indio_dev, | |||
890 | } | 890 | } |
891 | ret = 0; | 891 | ret = 0; |
892 | } | 892 | } |
893 | 893 | break; | |
894 | default: | 894 | default: |
895 | ret = -EINVAL; | 895 | ret = -EINVAL; |
896 | } | 896 | } |