[PATCH net-next 2/2] netvsc: Properly initialize the return value

From: kys
Date: Fri Mar 24 2017 - 23:55:52 EST


From: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>

Initialize the return value correctly.

Signed-off-by: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>
---
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 eb7ae79..f830bbb 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;
--
1.7.1