]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_65xx: remove deadcode in ni_65xx_intr_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 20 Oct 2014 22:02:14 +0000 (15:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:56:54 +0000 (15:56 +0800)
Reported-by: coverity (CID 142963)
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_65xx.c

index 3c27f532aa6ef54b4ec39095751bf887a72cce0c..973f0058a1e44076dc76c6b87b2a1f4a5ac27400 100644 (file)
@@ -534,9 +534,6 @@ static int ni_65xx_intr_cmdtest(struct comedi_device *dev,
        /* Step 2a : make sure trigger sources are unique */
        /* Step 2b : and mutually compatible */
 
-       if (err)
-               return 2;
-
        /* Step 3: check if arguments are trivially valid */
 
        err |= cfc_check_trigger_arg_is(&cmd->start_arg, 0);