Skip to content

Commit 386f576

Browse files
kattisrinivasandavem330
authored andcommitted
netvsc: Properly initialize the return value
Initialize the return value correctly. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b1dd90c commit 386f576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/hyperv/netvsc_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ static int netvsc_change_mtu(struct net_device *ndev, int mtu)
855855
struct hv_device *hdev = ndevctx->device_ctx;
856856
struct netvsc_device_info device_info;
857857
bool was_running;
858-
int ret;
858+
int ret = 0;
859859

860860
if (!nvdev || nvdev->destroy)
861861
return -ENODEV;

0 commit comments

Comments
 (0)