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-Tag: v3.18-rc1~130^2~1061 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b3cdebbfe22e26c3004eaec91fca1d1851b248d0;p=karo-tx-linux.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; }