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: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Sudip Mukherjee 2014-11-03 17:42:29 +05:30 committed by David S. Miller
parent 4e23576113
commit ec5a0ec1a4
1 changed files with 1 additions and 2 deletions

View File

@ -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;