From 958d14d38659d96859718657743a963bd6e9f1f4 Mon Sep 17 00:00:00 2001 From: David Hunt Date: Wed, 10 Apr 2019 14:13:48 +0100 Subject: [PATCH] examples/power: fix unreachable VF MAC init A for loop to MAX_VFS had a break as the last line, so the w++ would never get called, breaking out of the loop after the first iteration. Remove the break so that the loop can execute properly. Coverity issue: 337682 Fixes: ace158c4a821 ("examples/vm_power: add check for port count") Cc: stable@dpdk.org Signed-off-by: David Hunt Acked-by: Rami Rosen --- examples/vm_power_manager/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c index dd79a82fae..1a846af714 100644 --- a/examples/vm_power_manager/main.c +++ b/examples/vm_power_manager/main.c @@ -391,7 +391,6 @@ main(int argc, char **argv) break; } printf("\n"); - break; } } } -- 2.20.1