]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_6527: remove deadcode in ni6527_intr_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 25 Aug 2014 22:23:54 +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_6527.c

index e84dac2bf3b27a54efd960e558242aa9e9aee4af..7f868b503480e08e605f3e7d85b4c484a5e348e8 100644 (file)
@@ -252,10 +252,9 @@ static int ni6527_intr_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;
 }