]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove unnecessary checks when setting num channels
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 17 Jan 2017 17:19:19 +0000 (19:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 19:58:24 +0000 (14:58 -0500)
commit674386b108ffc39d19108a2f59cb2c3e204cfe1c
treeef14b383d6a950daacc6a8f438ad3bee216db82a
parent1ec707327fc2fd5f10b541ebb5f99ce420005f42
net/mlx5e: Remove unnecessary checks when setting num channels

Boundaries checks for the number of RX and TX should be checked by the
caller and not in the driver.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c