From: David Hunt Date: Wed, 10 Apr 2019 13:13:48 +0000 (+0100) Subject: examples/power: fix unreachable VF MAC init X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=958d14d38659d96859718657743a963bd6e9f1f4;p=dpdk.git 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 --- 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; } } }