mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
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>
This commit is contained in:
parent
b1dd90cea7
commit
386f57622c
1 changed files with 1 additions and 1 deletions
|
@ -855,7 +855,7 @@ static int netvsc_change_mtu(struct net_device *ndev, int mtu)
|
||||||
struct hv_device *hdev = ndevctx->device_ctx;
|
struct hv_device *hdev = ndevctx->device_ctx;
|
||||||
struct netvsc_device_info device_info;
|
struct netvsc_device_info device_info;
|
||||||
bool was_running;
|
bool was_running;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
if (!nvdev || nvdev->destroy)
|
if (!nvdev || nvdev->destroy)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue