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

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

In addition, remove wrong memset on get channels as it overrides the cmd
field in the requester struct.

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/mlx4/en_ethtool.c