projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1dd90c
)
netvsc: Properly initialize the return value
author
K. Y. Srinivasan
<kys@microsoft.com>
Sat, 25 Mar 2017 03:54:37 +0000
(20:54 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/hyperv/netvsc_drv.c
b/drivers/net/hyperv/netvsc_drv.c
index eb7ae79d47bb4b1619e4c148392ef8cbe7c71352..f830bbbd8ad476e11768cd96665e9ed248e0015d 100644
(file)
--- 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;