From: K. Y. Srinivasan Date: Sat, 25 Mar 2017 03:54:37 +0000 (-0700) Subject: netvsc: Properly initialize the return value X-Git-Tag: v4.14-rc1~960^3~337^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=386f57622cc3bbb39b9c00fc8762bc9ab28e0f8d;p=platform%2Fkernel%2Flinux-rpi.git netvsc: Properly initialize the return value Initialize the return value correctly. Signed-off-by: K. Y. Srinivasan Signed-off-by: David S. Miller --- 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;