staging: comedi: ni_tiocmd: remove deadcode in ni_tio_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 25 Aug 2014 22:23:49 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:20:50 +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_tiocmd.c

index 299ceddfb233b7d13686ef7e5ace674e05a5f4da..c1e3966de3013c2c33329af99230c91af69d588a 100644 (file)
@@ -286,10 +286,9 @@ int ni_tio_cmdtest(struct comedi_device *dev,
        if (err)
                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 */
 
        return 0;
 }