]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: comedi: ni_mio_common: remove deadcode in ni_cdio_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 25 Aug 2014 22:23:52 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:20:51 +0000 (13:20 -0700)
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>
drivers/staging/comedi/drivers/ni_mio_common.c

index 3c9d747fce8b947ab041d39b5b95547ce69ea824..c4c82d0178f16bf6feaf9f002ea1e6ef5e577959 100644 (file)
@@ -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);