]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
raw: Fix mixed declarations error in raw_icmp_error().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Sun, 19 Jun 2022 23:29:26 +0000 (16:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:40:49 +0000 (14:40 +0200)
[ Upstream commit 5da39e31b1b0eb62b8ed369ad9615da850239e9e ]

The trailing semicolon causes a compiler error, so let's remove it.

net/ipv4/raw.c: In function ‘raw_icmp_error’:
net/ipv4/raw.c:266:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
  266 |  struct hlist_nulls_head *hlist;
      |  ^~~~~~

Fixes: ba44f8182ec2 ("raw: use more conventional iterators")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/raw.c

index 2961421dfa68b09714232091855b83ed85522f1d..0d534f4720c4e349aa153d4a143d3a845810dd3a 100644 (file)
@@ -262,7 +262,7 @@ static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info)
 
 void raw_icmp_error(struct sk_buff *skb, int protocol, u32 info)
 {
-       struct net *net = dev_net(skb->dev);;
+       struct net *net = dev_net(skb->dev);
        struct hlist_nulls_head *hlist;
        struct hlist_nulls_node *hnode;
        int dif = skb->dev->ifindex;