linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] drivers: iio: adc: xilinx-xadc-events: Fixed a coding style warning.
@ 2016-02-06 20:00 Rakhi Sharma
  2016-02-06 22:02 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Rakhi Sharma @ 2016-02-06 20:00 UTC (permalink / raw)
  To: jic23; +Cc: knaack.h, lars, michal.simek, linux-iio, Rakhi Sharma

Fixed a warning.
WARNING: else is not generally useful after a break or return

Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>
---
 drivers/iio/adc/xilinx-xadc-events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/xilinx-xadc-events.c b/drivers/iio/adc/xilinx-xadc-events.c
index edcf3aa..61309b3 100644
--- a/drivers/iio/adc/xilinx-xadc-events.c
+++ b/drivers/iio/adc/xilinx-xadc-events.c
@@ -92,7 +92,7 @@ static unsigned int xadc_get_alarm_mask(const struct iio_chan_spec *chan)
 {
 	if (chan->type == IIO_TEMP) {
 		return XADC_ALARM_OT_MASK;
-	} else {
+	}
 		switch (chan->channel) {
 		case 0:
 			return XADC_ALARM_VCCINT_MASK;
-- 
1.9.1

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

end of thread, other threads:[~2016-02-06 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-06 20:00 [PATCH 2/2] drivers: iio: adc: xilinx-xadc-events: Fixed a coding style warning Rakhi Sharma
2016-02-06 22:02 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).