]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: iio: accel: remove else after return
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Mon, 22 Sep 2014 09:20:22 +0000 (14:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Sep 2014 14:59:35 +0000 (07:59 -0700)
This patch fixes checkpatch.pl warning in files of iio: accel
WARNING : else is not generally useful after a break or return

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/accel/adis16240_core.c
drivers/staging/iio/accel/lis3l02dq_ring.c

index 205d6d0a22063faff8568668ad2da0fae0009866..3f46086eab3a30d86c464d2016255e7edb46f91c 100644 (file)
@@ -99,9 +99,8 @@ static int adis16240_read_raw(struct iio_dev *indio_dev,
                                *val = 4;
                                *val2 = 880000; /* 4.88 mV */
                                return IIO_VAL_INT_PLUS_MICRO;
-                       } else {
-                               return -EINVAL;
                        }
+                       return -EINVAL;
                case IIO_TEMP:
                        *val = 244; /* 0.244 C */
                        *val2 = 0;
index 1d934ee3bb5f8c9c136fc7b8cfda116726eb7427..61f94221b8b733ae46542fc24913cc5fb6cddead 100644 (file)
@@ -34,8 +34,8 @@ irqreturn_t lis3l02dq_data_rdy_trig_poll(int irq, void *private)
        if (st->trigger_on) {
                iio_trigger_poll(st->trig);
                return IRQ_HANDLED;
-       } else
-               return IRQ_WAKE_THREAD;
+       }
+       return IRQ_WAKE_THREAD;
 }
 
 static const u8 read_all_tx_array[] = {