staging: comedi: ni_mio_common: remove deadcode in ni_cdio_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 20 Oct 2014 22:04:30 +0000 (15:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:56:53 +0000 (15:56 +0800)
Reported-by: coverity (CID 142967)
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 785ad7004d98875b3e9989f576fa4d0df53e2650..fa5b250636611994f4a41d85d6a70a6e4e4bc254 100644 (file)
@@ -3513,9 +3513,6 @@ static int ni_cdio_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);