staging: comedi: hwdrv_apci3120: else is not useful after return
authorChase Southwood <chase.southwood@gmail.com>
Wed, 10 Sep 2014 06:04:28 +0000 (01:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:36:06 +0000 (14:36 -0700)
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 <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c

index 91d90ce3418e732a99a99c5488df90d282351696..c6103a6d6bff3c5227b2ecfb6ef6353a39837411 100644 (file)
@@ -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);
 }
 
 /*