Commit f09906f4 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 87a0c157
...@@ -890,7 +890,7 @@ static int ad7192_write_raw(struct iio_dev *indio_dev, ...@@ -890,7 +890,7 @@ static int ad7192_write_raw(struct iio_dev *indio_dev,
} }
ret = 0; ret = 0;
} }
break;
default: default:
ret = -EINVAL; ret = -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment