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>
This commit is contained in:
parent
75d30c7f0d
commit
ece45f693a
@ -492,7 +492,6 @@ mlx4_ibv_device_to_pci_addr(const struct ibv_device *device,
|
||||
&pci_addr->bus,
|
||||
&pci_addr->devid,
|
||||
&pci_addr->function) == 4) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user