Skip to content

Commit be10de0

Browse files
ebiedermdavem330
authored andcommitted
netfilter: Add blank lines in callers of netfilter hooks
In code review it was noticed that I had failed to add some blank lines in places where they are customarily used. Taking a second look at the code I have to agree blank lines would be nice so I have added them here. Reported-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0c4b51f commit be10de0

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

net/ipv4/xfrm4_output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb)
9797
int xfrm4_output(struct sock *sk, struct sk_buff *skb)
9898
{
9999
struct net *net = dev_net(skb_dst(skb)->dev);
100+
100101
return NF_HOOK_COND(NFPROTO_IPV4, NF_INET_POST_ROUTING,
101102
net, sk, skb, NULL, skb_dst(skb)->dev,
102103
__xfrm4_output,

net/ipv6/ip6_output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ int ip6_output(struct sock *sk, struct sk_buff *skb)
136136
struct net_device *dev = skb_dst(skb)->dev;
137137
struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb));
138138
struct net *net = dev_net(dev);
139+
139140
if (unlikely(idev->cnf.disable_ipv6)) {
140141
IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS);
141142
kfree_skb(skb);

net/ipv6/xfrm6_output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
169169
int xfrm6_output(struct sock *sk, struct sk_buff *skb)
170170
{
171171
struct net *net = dev_net(skb_dst(skb)->dev);
172+
172173
return NF_HOOK_COND(NFPROTO_IPV6, NF_INET_POST_ROUTING,
173174
net, sk, skb, NULL, skb_dst(skb)->dev,
174175
__xfrm6_output,

net/xfrm/xfrm_output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
132132
int xfrm_output_resume(struct sk_buff *skb, int err)
133133
{
134134
struct net *net = xs_net(skb_dst(skb)->xfrm);
135+
135136
while (likely((err = xfrm_output_one(skb, err)) == 0)) {
136137
nf_reset(skb);
137138

0 commit comments

Comments
 (0)