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

Commit 386f5762 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by David S. Miller
Browse files

netvsc: Properly initialize the return value



Initialize the return value correctly.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1dd90ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -855,7 +855,7 @@ static int netvsc_change_mtu(struct net_device *ndev, int mtu)
	struct hv_device *hdev = ndevctx->device_ctx;
	struct netvsc_device_info device_info;
	bool was_running;
	int ret;
	int ret = 0;

	if (!nvdev || nvdev->destroy)
		return -ENODEV;