From: H Hartley Sweeten Date: Mon, 25 Aug 2014 22:23:53 +0000 (-0700) Subject: staging: comedi: ni_65xx: remove deadcode in ni_65xx_intr_cmdtest() X-Git-Tag: v3.18-rc1~130^2~1069 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f8ee13c6620b526527e0b33227d6e9fd62565c9b;p=karo-tx-linux.git staging: comedi: ni_65xx: remove deadcode in ni_65xx_intr_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/ni_65xx.c b/drivers/staging/comedi/drivers/ni_65xx.c index 873941be56cb..bf0a50dd8978 100644 --- a/drivers/staging/comedi/drivers/ni_65xx.c +++ b/drivers/staging/comedi/drivers/ni_65xx.c @@ -548,10 +548,9 @@ static int ni_65xx_intr_cmdtest(struct comedi_device *dev, if (err) return 3; - /* step 4: fix up any arguments */ + /* Step 4: fix up any arguments */ - if (err) - return 4; + /* Step 5: check channel list if it exists */ return 0; }