]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Use correct variable type for mlx4_slave_cap
authorMatan Barak <matanb@mellanox.com>
Thu, 13 Nov 2014 12:45:28 +0000 (14:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Nov 2014 20:16:16 +0000 (15:16 -0500)
commita1200e45c46ef62a3622415de27394dd9dfe2075
treeef792273b42c0368ed373c2e45134fa012d20e86
parent8466f481d43cc9c5c373eb4f20c6f07741ec365f
net/mlx4_core: Use correct variable type for mlx4_slave_cap

We've used an incorrect type for the loop counter and the
mlx4_QUERY_FUNC_CAP function. The current input modifier
is either a port or a boolean.
Since the number of ports is always a positive value < 255,
we should use u8 instead of an integer with casting.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c