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

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
......@@ -675,8 +675,7 @@ static int sixpack_open(struct tty_struct *tty)
kfree(xbuff);
kfree(rbuff);
if (dev)
free_netdev(dev);
free_netdev(dev);
out:
return err;
......
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