From: H Hartley Sweeten Date: Mon, 25 Aug 2014 22:23:49 +0000 (-0700) Subject: staging: comedi: ni_tiocmd: remove deadcode in ni_tio_cmdtest() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae2aef64fb10f8c976cd7e95372bab45944d754a;p=linux-beck.git staging: comedi: ni_tiocmd: remove deadcode in ni_tio_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_tiocmd.c b/drivers/staging/comedi/drivers/ni_tiocmd.c index 299ceddfb233..c1e3966de301 100644 --- a/drivers/staging/comedi/drivers/ni_tiocmd.c +++ b/drivers/staging/comedi/drivers/ni_tiocmd.c @@ -286,10 +286,9 @@ int ni_tio_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; }