Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec5a0ec1 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by David S. Miller
Browse files

hamradio: 6pack: remove unnecessary check



this is check for dev is unnecessary, as we are already checking dev
after allocating it via alloc_netdev, and jumping to label: out
if it is NULL.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e235761
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -675,7 +675,6 @@ static int sixpack_open(struct tty_struct *tty)
	kfree(xbuff);
	kfree(rbuff);

	if (dev)
	free_netdev(dev);

out: