common/mlx5: remove useless assignment
authorMichael Baum <michaelba@mellanox.com>
Wed, 24 Jun 2020 13:33:50 +0000 (13:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commit75d30c7f0d6166296ebdd77a736217009c2fe90c
treeec2edfae6de4373f9d6afbd10cd1e8c10651c593
parent50e249437811c9150e3ade4a4ee08a7d8d3ee5ec
common/mlx5: remove useless assignment

The mlx5_dev_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/common/mlx5/linux/mlx5_common_os.c