Skip to contentSkip to conversation

ipv6: netfilter.c: fix missing line after declaration

PATCH In review Pallavi Prabhu 2 participants 2 messages May 5, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6: netfilter.c: fix missing line after declaration

Fixed a missing line after a declaration for proper coding style.

---
 net/ipv6/netfilter.c | 1 +
 1 file changed, 1 insertion(+)
net/ipv6/netfilter.c +1 -0
index ab9a279dd6d4..7b1671f48593 100644
@@ -81,6 +81,7 @@ static int nf_ip6_reroute(struct sk_buff *skb,
 
 	if (entry->state.hook == NF_INET_LOCAL_OUT) {
 		const struct ipv6hdr *iph = ipv6_hdr(skb);
+
 		if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
 		    !ipv6_addr_equal(&iph->saddr, &rt_info->saddr) ||
 		    skb->mark != rt_info->mark)
Signature · 1 line
2.25.1
#1 lore raw

Hi Pallavi,

Quoted 1 line · Pallavi Prabhu

Fixed a missing line after a declaration for proper coding style.

I'd probably suggest to use Coccinelle or similar to make a Netfilter tree wide patch to add line after a declaration.

Probably there are more spots in the Netfilter codebase that can benefit from this cleanup.

Quoted 20 lines
---
 net/ipv6/netfilter.c | 1 +
 1 file changed, 1 insertion(+)
net/ipv6/netfilter.c +1 -0
index ab9a279dd6d4..7b1671f48593 100644
@@ -81,6 +81,7 @@ static int nf_ip6_reroute(struct sk_buff *skb,
 
 	if (entry->state.hook == NF_INET_LOCAL_OUT) {
 		const struct ipv6hdr *iph = ipv6_hdr(skb);
+
 		if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
 		    !ipv6_addr_equal(&iph->saddr, &rt_info->saddr) ||
 		    skb->mark != rt_info->mark)
Signature · 1 line
2.25.1