From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:23 +0000 (-0700) Subject: staging: comedi: dt282x: checkpatch.pl cleanup (else after return) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aa2998450bcd44979b44ed8d4f226e3f486b3bb4;p=linux-beck.git staging: comedi: dt282x: checkpatch.pl cleanup (else after return) Fix checkpatch.pl warning: WARNING: else is not generally useful after a break or return Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index 27a8bb18bcd5..cacb4f40bbba 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c @@ -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)