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; }