staging: comedi: ni_mio_common: remove deadcode in ni_cdio_cmdtest()
Reported by: coverity Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cad6daded3
commit
b32381c5a8
1 changed files with 2 additions and 4 deletions
|
@ -3549,12 +3549,10 @@ static int ni_cdio_cmdtest(struct comedi_device *dev,
|
|||
if (err)
|
||||
return 3;
|
||||
|
||||
/* step 4: fix up any arguments */
|
||||
|
||||
if (err)
|
||||
return 4;
|
||||
/* Step 4: fix up any arguments */
|
||||
|
||||
/* Step 5: check channel list if it exists */
|
||||
|
||||
if (cmd->chanlist && cmd->chanlist_len > 0)
|
||||
err |= ni_cdio_check_chanlist(dev, s, cmd);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue