mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 19:24:01 -04:00
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
02efdb3bb0
commit
aa2998450b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user