diff options
author | Vincent Heuken <me@vincentheuken.com> | 2014-07-10 14:34:28 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-11 02:12:51 +0400 |
commit | 083b3638d33312cd73a8950ffebaee07a9e92ba9 (patch) | |
tree | 395a6bb0f9a24b3c7cc556f2a3ebaad1fe763e51 /drivers/staging/panel | |
parent | a3355a62673e2c4bd8617d2f07c8edee92a89b8d (diff) | |
download | linux-083b3638d33312cd73a8950ffebaee07a9e92ba9.tar.xz |
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 <me@vincentheuken.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r-- | drivers/staging/panel/panel.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; } |