The 'else' should follow close brace '}' Signed-off-by: Anoob Joseph <anoob.jos...@caviumnetworks.com> --- examples/l2fwd/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index ae51ac7..d2b7034 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -568,8 +568,7 @@ main(int argc, char **argv) if (nb_ports_in_mask % 2) { l2fwd_dst_ports[portid] = last_port; l2fwd_dst_ports[last_port] = portid; - } - else + } else last_port = portid; nb_ports_in_mask++; -- 2.7.4