aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/panel/panel.c
diff options
context:
space:
mode:
authorVincent Heuken <me@vincentheuken.com>2014-07-10 03:34:28 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 15:12:51 -0700
commit083b3638d33312cd73a8950ffebaee07a9e92ba9 (patch)
tree395a6bb0f9a24b3c7cc556f2a3ebaad1fe763e51 /drivers/staging/panel/panel.c
parentstaging: r8821ae: avoid leaking format string (diff)
downloadlinux-dev-083b3638d33312cd73a8950ffebaee07a9e92ba9.tar.xz
linux-dev-083b3638d33312cd73a8950ffebaee07a9e92ba9.zip
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/panel.c')
-rw-r--r--drivers/staging/panel/panel.c9
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;
}