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

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
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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();
}

+2 −5
Original line number Diff line number Diff line
@@ -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();
}