Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd4578bc authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 179d80af
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1094,8 +1094,6 @@ int netvsc_device_add(struct hv_device *device, void *additional_info)
	vmbus_close(device->channel);

cleanup:

	if (net_device)
	kfree(net_device);

	return ret;