]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2022 08:10:13 +0000 (09:10 +0100)
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>
net/ipv4/raw.c

index d28bf0b901a2772089c07104447fba362dee7796..b3b255db9021d3890027d002c388553a082db7ab 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;