[dpdk-dev] [PATCH 3/8] examples/l2fwd: else should follow close brace

Anoob Joseph anoob.joseph at caviumnetworks.com
Mon Oct 8 12:41:20 CEST 2018


The 'else' should follow close brace '}'

Signed-off-by: Anoob Joseph <anoob.joseph at 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



More information about the dev mailing list