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 коммит произвёл David S. Miller
Родитель 4e23576113
Коммит ec5a0ec1a4
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -675,8 +675,7 @@ out_free:
kfree(xbuff); kfree(xbuff);
kfree(rbuff); kfree(rbuff);
if (dev) free_netdev(dev);
free_netdev(dev);
out: out:
return err; return err;