From: Vincent Heuken Date: Thu, 10 Jul 2014 10:34:28 +0000 (-0700) Subject: Staging: panel: fixed frivilous else statement warning X-Git-Tag: firefly_0821_release~176^2~3491^2~969 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=083b3638d33312cd73a8950ffebaee07a9e92ba9;p=firefly-linux-kernel-4.4.55.git Staging: panel: fixed frivilous else statement warning 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index 4e9229363c36..6d1a32097d3c 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/staging/panel/panel.c @@ -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; }