From: H Hartley Sweeten Date: Mon, 25 Aug 2014 22:23:54 +0000 (-0700) Subject: staging: comedi: ni_6527: remove deadcode in ni6527_intr_cmdtest() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=88eb626a7ed9b57e11cf08ddf5a5b2bcfd193961;p=linux-beck.git staging: comedi: ni_6527: remove deadcode in ni6527_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_6527.c b/drivers/staging/comedi/drivers/ni_6527.c index e84dac2bf3b2..7f868b503480 100644 --- a/drivers/staging/comedi/drivers/ni_6527.c +++ b/drivers/staging/comedi/drivers/ni_6527.c @@ -252,10 +252,9 @@ static int ni6527_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; }