Commit dacf470b authored by Pavel Machek's avatar Pavel Machek Committed by David S. Miller

net: slcan, slip -- no need for goto when if () will do

No need to play with gotos to jump over single statement.
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c7211ff3
......@@ -348,11 +348,8 @@ static void slcan_write_wakeup(struct tty_struct *tty)
rcu_read_lock();
sl = rcu_dereference(tty->disc_data);
if (!sl)
goto out;
if (sl)
schedule_work(&sl->tx_work);
out:
rcu_read_unlock();
}
......
......@@ -456,11 +456,8 @@ static void slip_write_wakeup(struct tty_struct *tty)
rcu_read_lock();
sl = rcu_dereference(tty->disc_data);
if (!sl)
goto out;
if (sl)
schedule_work(&sl->tx_work);
out:
rcu_read_unlock();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment