diff options
| author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2012-11-10 03:47:13 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-11-10 04:02:03 -0500 |
| commit | 71a129fb6153ca7a972c31dddb09c2f097262e6e (patch) | |
| tree | 83b6b077a6b401c4259462843595f9a7e6e3f4cb /drivers/input | |
| parent | 800963fd598e2acbcd3a21a17e3ab3c185ad0d6a (diff) | |
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.c | 11 |
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) | |||
| 686 | write_lock_irqsave(&mlc->lock, flags); | 686 | write_lock_irqsave(&mlc->lock, flags); |
| 687 | pack = node->object.packet; | 687 | pack = node->object.packet; |
| 688 | out: | 688 | out: |
| 689 | if (mlc->istarted) | 689 | if (!mlc->istarted) { |
| 690 | goto out2; | 690 | /* Prepare to receive input */ |
| 691 | /* Prepare to receive input */ | 691 | if ((node + 1)->act & HILSE_IN) |
| 692 | if ((node + 1)->act & HILSE_IN) | 692 | hilse_setup_input(mlc, node + 1); |
| 693 | hilse_setup_input(mlc, node + 1); | 693 | } |
| 694 | 694 | ||
| 695 | out2: | ||
| 696 | write_unlock_irqrestore(&mlc->lock, flags); | 695 | write_unlock_irqrestore(&mlc->lock, flags); |
| 697 | 696 | ||
| 698 | if (down_trylock(&mlc->osem)) { | 697 | if (down_trylock(&mlc->osem)) { |
