public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix a missing break in devivers/staging/iio
@ 2014-03-22  5:58 Jimmy Li
  2014-03-22 11:53 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Jimmy Li @ 2014-03-22  5:58 UTC (permalink / raw)
  To: Jonathan Cameron, Greg Kroah-Hartman; +Cc: linux-iio, devel, linux-kernel

fix a missing break.

Signed-off-by: Jimmy Li <coder.liss@gmail.com>
---
 drivers/staging/iio/resolver/ad2s1200.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c
index 36eedd8..e2b4820 100644
--- a/drivers/staging/iio/resolver/ad2s1200.c
+++ b/drivers/staging/iio/resolver/ad2s1200.c
@@ -70,6 +70,7 @@ static int ad2s1200_read_raw(struct iio_dev *indio_dev,
 		vel = (((s16)(st->rx[0])) << 4) | ((st->rx[1] & 0xF0) >> 4);
 		vel = (vel << 4) >> 4;
 		*val = vel;
+		break;
 	default:
 		mutex_unlock(&st->lock);
 		return -EINVAL;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-22 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-22  5:58 [PATCH] fix a missing break in devivers/staging/iio Jimmy Li
2014-03-22 11:53 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox