From: H Hartley Sweeten Date: Mon, 25 Aug 2014 22:24:03 +0000 (-0700) Subject: staging: comedi: addi_apci_1032: remove deadcode in apci1032_cos_cmdtest() X-Git-Tag: v3.18-rc1~130^2~1059 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d0be9430420457bfffcf4fa7f1ee26dbfd8cedb6;p=karo-tx-linux.git staging: comedi: addi_apci_1032: remove deadcode in apci1032_cos_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_1032.c b/drivers/staging/comedi/drivers/addi_apci_1032.c index 1b2e7c040c9f..44080f6c887f 100644 --- a/drivers/staging/comedi/drivers/addi_apci_1032.c +++ b/drivers/staging/comedi/drivers/addi_apci_1032.c @@ -190,9 +190,6 @@ static int apci1032_cos_cmdtest(struct comedi_device *dev, /* Step 2a : make sure trigger sources are unique */ /* Step 2b : and mutually compatible */ - if (err) - return 2; - /* Step 3: check if arguments are trivially valid */ err |= cfc_check_trigger_arg_is(&cmd->start_arg, 0); @@ -204,10 +201,9 @@ static int apci1032_cos_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; }