Staging: panel: fixed frivilous else statement warning
authorVincent Heuken <me@vincentheuken.com>
Thu, 10 Jul 2014 10:34:28 +0000 (03:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:12:51 +0000 (15:12 -0700)
Fixed one instance of the following checkpatch.pl warning in
panel.c:
WARNING: else is not generally useful after a break or return

Signed-off-by: Vincent Heuken <me@vincentheuken.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c

index 4e9229363c361cb18442942e0a1d6ad8a3b6a693..6d1a32097d3cf30f33ad7e1be012e1532d71d15f 100644 (file)
@@ -1800,11 +1800,12 @@ static inline int input_state_high(struct logical_input *input)
                                input->high_timer++;
                }
                return 1;
-       } else {
-               /* else signal falling down. Let's fall through. */
-               input->state = INPUT_ST_FALLING;
-               input->fall_timer = 0;
        }
+
+       /* else signal falling down. Let's fall through. */
+       input->state = INPUT_ST_FALLING;
+       input->fall_timer = 0;
+
        return 0;
 }