[PATCH 2/2] drivers: iio: adc: xilinx-xadc-events: Fixed a coding style warning.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Rakhi Sharma <rakhish1994@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux