staging: comedi: ni_6527: remove deadcode in ni6527_intr_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 20 Oct 2014 22:03:15 +0000 (15:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:56:54 +0000 (15:56 +0800)
Reported-by: coverity (CID 142962)
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 b77354bc75e6fb4e3ea413a9f3a677e2489067be..b35e1aeb6626f6723b72c91c523a697ec2f240dc 100644 (file)
@@ -238,9 +238,6 @@ static int ni6527_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);