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)
commit225c6c8c6bbbc32455df3d1c0fb1e1e1fb51c533
treeef792273b42c0368ed373c2e45134fa012d20e86
parent7c68dd435b3ea128550c3eed62cd3cb405431374
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