summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorRolf Eike Beer <eike-kernel@sf-tec.de>2012-11-10 09:47:13 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-10 10:02:03 +0100
commit71a129fb6153ca7a972c31dddb09c2f097262e6e (patch)
tree83b6b077a6b401c4259462843595f9a7e6e3f4cb /drivers/input
parentInput: document new members of struct input_dev (diff)
downloadlinux-71a129fb6153ca7a972c31dddb09c2f097262e6e.tar.xz
linux-71a129fb6153ca7a972c31dddb09c2f097262e6e.zip
Input: HIL - remove one goto
This goto is only used to skip the next instruction, which can easily be done without a goto. Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/serio/hil_mlc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/input/serio/hil_mlc.c b/drivers/input/serio/hil_mlc.c
index bfd3865d886b..0280167f09ac 100644
--- a/drivers/input/serio/hil_mlc.c
+++ b/drivers/input/serio/hil_mlc.c
@@ -686,13 +686,12 @@ static int hilse_donode(hil_mlc *mlc)
write_lock_irqsave(&mlc->lock, flags);
pack = node->object.packet;
out:
- if (mlc->istarted)
- goto out2;
- /* Prepare to receive input */
- if ((node + 1)->act & HILSE_IN)
- hilse_setup_input(mlc, node + 1);
+ if (!mlc->istarted) {
+ /* Prepare to receive input */
+ if ((node + 1)->act & HILSE_IN)
+ hilse_setup_input(mlc, node + 1);
+ }
- out2:
write_unlock_irqrestore(&mlc->lock, flags);
if (down_trylock(&mlc->osem)) {