Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2017-10-20 12:20:33 +0200
committerOlaf Hering <ohering@suse.de>2017-10-20 12:23:29 +0200
commit69f211b05a3aee509d3a0a421f261980e3273367 (patch)
tree2aa8b5bc9fb18269bb12279871ccfb1938b02270
parent13dbdb889e52cef853a2d931516601fcbf2cd2e6 (diff)
hv_netvsc: Simplify the limit check in netvsc_set_channels()
-rw-r--r--drivers/net/hyperv/netvsc_drv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 992a48ec0206..fd65d32bf24d 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -830,9 +830,6 @@ static int netvsc_set_channels(struct net_device *net,
channels->rx_count || channels->tx_count || channels->other_count)
return -EINVAL;
- if (count > net->num_tx_queues || count > VRSS_CHANNEL_MAX)
- return -EINVAL;
-
if (!nvdev || nvdev->destroy)
return -ENODEV;