Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6aac1f2 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

netvsc: fix return value for set_channels



The error and normal case got swapped.

Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a847135a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -758,8 +758,8 @@ static int netvsc_set_channels(struct net_device *net,
	if (!IS_ERR(nvdev)) {
	if (!IS_ERR(nvdev)) {
		netif_set_real_num_tx_queues(net, nvdev->num_chn);
		netif_set_real_num_tx_queues(net, nvdev->num_chn);
		netif_set_real_num_rx_queues(net, nvdev->num_chn);
		netif_set_real_num_rx_queues(net, nvdev->num_chn);
		ret = PTR_ERR(nvdev);
	} else {
	} else {
		ret = PTR_ERR(nvdev);
		device_info.num_chn = orig;
		device_info.num_chn = orig;
		rndis_filter_device_add(dev, &device_info);
		rndis_filter_device_add(dev, &device_info);
	}
	}