提交 71a129fb 编写于 作者: R Rolf Eike Beer 提交者: Dmitry Torokhov

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: NRolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 800963fd
......@@ -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;
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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册