[3/8] examples/l2fwd: else should follow close brace

Message ID 1538995285-2040-4-git-send-email-anoob.joseph@caviumnetworks.com (mailing list archive)
State Rejected, archived
Delegated to: Thomas Monjalon
Headers
Series examples/l2fwd: fix checkpatch reported issues |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Anoob Joseph Oct. 8, 2018, 10:41 a.m. UTC
  The 'else' should follow close brace '}'

Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
---
 examples/l2fwd/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

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++;