1
0
Fork 0

drivers/net/hyperv/netvsc.c: remove unnecessary null test before kfree

Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
Fabian Frederick 2014-06-28 20:44:19 +02:00 committed by David S. Miller
parent 179d80aff8
commit bd4578bc84
1 changed files with 1 additions and 3 deletions

View File

@ -1094,9 +1094,7 @@ close:
vmbus_close(device->channel);
cleanup:
if (net_device)
kfree(net_device);
kfree(net_device);
return ret;
}