net/mlx4: remove useless assignment
authorMichael Baum <michaelba@mellanox.com>
Wed, 24 Jun 2020 13:44:27 +0000 (13:44 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commitece45f693a1c50e1f6d0619b4bb859955037ab0b
tree6c3c054b952e26d280354cd22731ed3995de96f2
parent75d30c7f0d6166296ebdd77a736217009c2fe90c
net/mlx4: remove useless assignment

The mlx4_ibv_device_to_pci_addr function defines a variable called ret
inside a loop and uses it.

During the loop, the function assigns a value within the variable and
breaks from the loop, so that this assigning has done nothing and is
actually unnecessary.

Remove the unnecessary assigning.

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx4/mlx4.c