forked from luck/tmp_suning_uos_patched
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: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
1c795ebd00
commit
421afe5805
@ -676,7 +676,7 @@ static int ad7793_write_raw(struct iio_dev *indio_dev,
|
||||
}
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user