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:
Родитель
4e23576113
Коммит
ec5a0ec1a4
|
@ -675,8 +675,7 @@ out_free:
|
|||
kfree(xbuff);
|
||||
kfree(rbuff);
|
||||
|
||||
if (dev)
|
||||
free_netdev(dev);
|
||||
free_netdev(dev);
|
||||
|
||||
out:
|
||||
return err;
|
||||
|
|
Загрузка…
Ссылка в новой задаче