From: H Hartley Sweeten Date: Mon, 25 Aug 2014 22:24:01 +0000 (-0700) Subject: staging: comedi: addi_apci_2032: remove deadcode in apci2030_int_cmdtest() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b3cdebbfe22e26c3004eaec91fca1d1851b248d0;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: addi_apci_2032: remove deadcode in apci2030_int_cmdtest() Reported by: coverity Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_2032.c b/drivers/staging/comedi/drivers/addi_apci_2032.c index be0a8a7bd3b2..6768d1dc2005 100644 --- a/drivers/staging/comedi/drivers/addi_apci_2032.c +++ b/drivers/staging/comedi/drivers/addi_apci_2032.c @@ -147,10 +147,9 @@ static int apci2032_int_cmdtest(struct comedi_device *dev, if (err) return 3; - /* step 4: ignored */ + /* Step 4: fix up any arguments */ - if (err) - return 4; + /* Step 5: check channel list if it exists */ return 0; }