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>
This commit is contained in:
parent
179d80aff8
commit
bd4578bc84
@ -1094,9 +1094,7 @@ close:
|
||||
vmbus_close(device->channel);
|
||||
|
||||
cleanup:
|
||||
|
||||
if (net_device)
|
||||
kfree(net_device);
|
||||
kfree(net_device);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user