]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: dt282x: checkpatch.pl cleanup (else after return)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:23 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:34:22 +0000 (13:34 -0700)
Fix checkpatch.pl warning:

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

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt282x.c

index 27a8bb18bcd5156a33fda723412ec9bc0a6b1570..cacb4f40bbbac05e8b11ee91fcf1e1e08ae1065b 100644 (file)
@@ -1079,11 +1079,11 @@ static const struct comedi_lrange *opt_ai_range_lkup(int ispgl, int x)
                if (x < 0 || x >= 2)
                        x = 0;
                return ai_range_pgl_table[x];
-       } else {
-               if (x < 0 || x >= 4)
-                       x = 0;
-               return ai_range_table[x];
        }
+
+       if (x < 0 || x >= 4)
+               x = 0;
+       return ai_range_table[x];
 }
 
 static int dt282x_grab_dma(struct comedi_device *dev, int dma1, int dma2)