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:
parent
4e23576113
commit
ec5a0ec1a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue