Skip to content

Commit

Permalink
staging:iio:ad7793: Add missing break in switch statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Aug 16, 2012
1 parent 1c795eb commit 421afe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/adc/ad7793.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static int ad7793_write_raw(struct iio_dev *indio_dev,
}
ret = 0;
}

break;
default:
ret = -EINVAL;
}
Expand Down

0 comments on commit 421afe5

Please sign in to comment.