netvsc: Properly initialize the return value
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 25 Mar 2017 03:54:37 +0000 (20:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Mar 2017 03:15:56 +0000 (20:15 -0700)
Initialize the return value correctly.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c

index eb7ae79d47bb4b1619e4c148392ef8cbe7c71352..f830bbbd8ad476e11768cd96665e9ed248e0015d 100644 (file)
@@ -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;