diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2017-03-25 06:54:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-26 06:15:56 +0300 |
commit | 386f57622cc3bbb39b9c00fc8762bc9ab28e0f8d (patch) | |
tree | 2739a064e7b53aa78727d2398873551e578105e6 /drivers/net/hyperv/netvsc_drv.c | |
parent | b1dd90cea725f794185a66c4e4ccfd4fb84632b5 (diff) | |
download | linux-386f57622cc3bbb39b9c00fc8762bc9ab28e0f8d.tar.xz |
netvsc: Properly initialize the return value
Initialize the return value correctly.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index eb7ae79d47bb..f830bbbd8ad4 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -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; |