From: Chase Southwood Date: Wed, 10 Sep 2014 06:04:28 +0000 (-0500) Subject: staging: comedi: hwdrv_apci3120: else is not useful after return X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bfc81c4a223ec2ecdc3ca955b4c060c64e5fb71f;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: hwdrv_apci3120: else is not useful after return The statement nested in an else after a return may be brought out one indent level, the else is useless. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c index 91d90ce3418e..c6103a6d6bff 100644 --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c @@ -1217,8 +1217,8 @@ static int apci3120_ai_cmd(struct comedi_device *dev, if (cmd->scan_begin_src == TRIG_FOLLOW) return apci3120_cyclic_ai(1, dev, s); - else /* TRIG_TIMER */ - return apci3120_cyclic_ai(2, dev, s); + /* TRIG_TIMER */ + return apci3120_cyclic_ai(2, dev, s); } /*