Commit 68835654 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: gsc_hpdi: remove deadcode in gsc_hpdi_cmd_test()

Reported by: coverity
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8d44945d
...@@ -422,12 +422,10 @@ static int gsc_hpdi_cmd_test(struct comedi_device *dev, ...@@ -422,12 +422,10 @@ static int gsc_hpdi_cmd_test(struct comedi_device *dev,
if (err) if (err)
return 3; return 3;
/* step 4: fix up any arguments */ /* Step 4: fix up any arguments */
if (err)
return 4;
/* Step 5: check channel list if it exists */ /* Step 5: check channel list if it exists */
if (cmd->chanlist && cmd->chanlist_len > 0) if (cmd->chanlist && cmd->chanlist_len > 0)
err |= gsc_hpdi_check_chanlist(dev, s, cmd); err |= gsc_hpdi_check_chanlist(dev, s, cmd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment