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

staging:iio:ad7793: 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 1c795ebd
......@@ -676,7 +676,7 @@ static int ad7793_write_raw(struct iio_dev *indio_dev,
}
ret = 0;
}
break;
default:
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