projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a0c15
)
staging:iio:ad7192: 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:35 +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/ad7192.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/ad7192.c
b/drivers/staging/iio/adc/ad7192.c
index
22c3923
..
b9a7442
100644
(file)
--- a/
drivers/staging/iio/adc/ad7192.c
+++ b/
drivers/staging/iio/adc/ad7192.c
@@
-890,7
+890,7
@@
static int ad7192_write_raw(struct iio_dev *indio_dev,
}
ret = 0;
}
-
+ break;
default:
ret = -EINVAL;
}