Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
David S. Miller
bd4578bc 179d80af

+1 -3
+1 -3
drivers/net/hyperv/netvsc.c
··· 1094 1094 vmbus_close(device->channel); 1095 1095 1096 1096 cleanup: 1097 - 1098 - if (net_device) 1099 - kfree(net_device); 1097 + kfree(net_device); 1100 1098 1101 1099 return ret; 1102 1100 }