Skip to content

Commit

Permalink
netfilter: ip6_tables: improve if statements
Browse files Browse the repository at this point in the history
Correct whitespace layout of if statements.

No changes detected by objdiff.

Signed-off-by: Ian Morris <ipm@chirality.org.uk>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Ian Morris authored and Pablo Neira Ayuso committed Oct 14, 2015
1 parent 544d9b1 commit 4305ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ipv6/netfilter/ip6_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ ip6_packet_match(const struct sk_buff *skb,
/* ... might want to do something with class and flowlabel here ... */

/* look for the desired protocol header */
if((ip6info->flags & IP6T_F_PROTO)) {
if (ip6info->flags & IP6T_F_PROTO) {
int protohdr;
unsigned short _frag_off;

Expand All @@ -151,9 +151,9 @@ ip6_packet_match(const struct sk_buff *skb,
ip6info->proto);

if (ip6info->proto == protohdr) {
if(ip6info->invflags & IP6T_INV_PROTO) {
if (ip6info->invflags & IP6T_INV_PROTO)
return false;
}

return true;
}

Expand Down

0 comments on commit 4305ae4

Please sign in to comment.