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

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
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment