commit | 225c6c8c6bbbc32455df3d1c0fb1e1e1fb51c533 | [log] [tgz] |
---|---|---|
author | Matan Barak <matanb@mellanox.com> | Thu Nov 13 14:45:28 2014 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Nov 13 15:16:16 2014 -0500 |
tree | ef792273b42c0368ed373c2e45134fa012d20e86 | |
parent | 7c68dd435b3ea128550c3eed62cd3cb405431374 [diff] |
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>