From: Michael Baum Date: Wed, 24 Jun 2020 13:44:27 +0000 (+0000) Subject: net/mlx4: remove useless assignment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ece45f693a1c50e1f6d0619b4bb859955037ab0b;p=dpdk.git 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 Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index ff270b465e..1657ea30c4 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -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; } }