]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5388de30b283604766007d5d456c5a81f1918d94
tree2e1362dc1d537f47eb7bec0e254f3428dd4461b5
parent5144d556eafff8296f58bb839c48e13a0efbd459
raw: Fix mixed declarations error in raw_icmp_error().

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: 45af60bd88af ("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