All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arushi Singhal <arushisinghal19971997@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] iptables: extensions: Add/Remove the braces where necessary
Date: Fri, 31 Mar 2017 15:36:59 +0530	[thread overview]
Message-ID: <20170331100659.GA21407@arushi-HP-Pavilion-Notebook> (raw)

To follow the coding style of kernel the braces are removed/added and
placed properly, if not.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
 extensions/libebt_802_3.c | 3 +--
 extensions/libebt_ip.c    | 5 ++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/extensions/libebt_802_3.c b/extensions/libebt_802_3.c
index f05d02e..801fb51 100644
--- a/extensions/libebt_802_3.c
+++ b/extensions/libebt_802_3.c
@@ -111,8 +111,7 @@ static void br802_3_print(const void *ip, const struct xt_entry_match *match,
 	}
 }
 
-static struct xtables_match br802_3_match =
-{
+static struct xtables_match br802_3_match = {
 	.name		= "802_3",
 	.revision	= 0,
 	.version	= XTABLES_VERSION,
diff --git a/extensions/libebt_ip.c b/extensions/libebt_ip.c
index 6b301e2..5943120 100644
--- a/extensions/libebt_ip.c
+++ b/extensions/libebt_ip.c
@@ -274,11 +274,10 @@ static void brip_print(const void *ip, const struct xt_entry_match *match,
 		if (info->invflags & EBT_IP_PROTO)
 			printf("! ");
 		pe = getprotobynumber(info->protocol);
-		if (pe == NULL) {
+		if (pe == NULL)
 			printf("%d ", info->protocol);
-		} else {
+		else
 			printf("%s ", pe->p_name);
-		}
 	}
 	if (info->bitmask & EBT_IP_SPORT) {
 		printf("--ip-sport ");
-- 
2.11.0


                 reply	other threads:[~2017-03-31 10:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170331100659.GA21407@arushi-HP-Pavilion-Notebook \
    --to=arushisinghal19971997@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.