linux/drivers/net/ethernet/mellanox
Andrzej Hajda 2b2b31c845 net/mlx4_core: fix handling return value of mlx4_slave_convert_port
The function can return negative values, so its result should
be assigned to signed variable.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2046107

Fixes: fc48866f7 ('net/mlx4: Adapt code for N-Port VF')
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-15 11:54:43 -05:00
..
mlx4 net/mlx4_core: fix handling return value of mlx4_slave_convert_port 2015-12-15 11:54:43 -05:00
mlx5/core net/mlx5e: Use the right DMA free function on TX path 2015-11-15 18:43:40 -05:00
mlxsw mlxsw: spectrum: Make mlxsw_sp_port_switchdev_ops static 2015-10-30 12:26:58 +09:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00