Skip to content

Commit

Permalink
Input: HIL - remove one goto
Browse files Browse the repository at this point in the history
This goto is only used to skip the next instruction, which can easily be done
without a goto.

Signed-off-by: Rolf Eike Beer <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
DerDakon authored and dtor committed Nov 10, 2012
1 parent 800963f commit 71a129f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/input/serio/hil_mlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 71a129f

Please sign in to comment.