From: H Hartley Sweeten Date: Mon, 20 Oct 2014 22:03:15 +0000 (-0700) Subject: staging: comedi: ni_6527: remove deadcode in ni6527_intr_cmdtest() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e7ea440a57fa0ace880e3c9406e02d580f24a91f;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: ni_6527: remove deadcode in ni6527_intr_cmdtest() Reported-by: coverity (CID 142962) Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_6527.c b/drivers/staging/comedi/drivers/ni_6527.c index b77354bc75e6..b35e1aeb6626 100644 --- a/drivers/staging/comedi/drivers/ni_6527.c +++ b/drivers/staging/comedi/drivers/ni_6527.c @@ -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);