projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c795eb
)
staging:iio:ad7793: Add missing break in switch statement
author
Lars-Peter Clausen
<lars@metafoo.de>
Fri, 10 Aug 2012 16:36:00 +0000
(17:36 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Thu, 16 Aug 2012 19:24:33 +0000
(20:24 +0100)
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>
drivers/staging/iio/adc/ad7793.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/adc/ad7793.c
b/drivers/staging/iio/adc/ad7793.c
index 76fdd7145fc5d855544c977560dfc3803baa7b95..1d0cd09be86e3ba99c002ef39049af39ad5f395a 100644
(file)
--- a/
drivers/staging/iio/adc/ad7793.c
+++ b/
drivers/staging/iio/adc/ad7793.c
@@
-676,7
+676,7
@@
static int ad7793_write_raw(struct iio_dev *indio_dev,
}
ret = 0;
}
-
+ break;
default:
ret = -EINVAL;
}