Input: HIL - remove one goto
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Sat, 10 Nov 2012 08:47:13 +0000 (00:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Nov 2012 09:02:03 +0000 (01:02 -0800)
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>
drivers/input/serio/hil_mlc.c

index bfd3865d886bf42752a8bf617fa592ed78ddf775..0280167f09ac39bf5ba33ce67543098b3c2b292a 100644 (file)
@@ -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)) {