]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: pktgen: fix code style (ERROR: space prohibited after that '&')
authorPeter Seiderer <ps.report@gmx.net>
Thu, 10 Apr 2025 07:17:39 +0000 (09:17 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 14 Apr 2025 21:47:58 +0000 (14:47 -0700)
Fix checkpatch code style errors/checks:

  CHECK: No space is necessary after a cast
  #2984: FILE: net/core/pktgen.c:2984:
  +       *(__be16 *) & eth[12] = protocol;

  ERROR: space prohibited after that '&' (ctx:WxW)
  #2984: FILE: net/core/pktgen.c:2984:
  +       *(__be16 *) & eth[12] = protocol;

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/pktgen.c

index fe89384d56d0d456c484318dda0ac86333dbf702..a54683d9d44ae87ef368a536f92e9514fbd9cc7b 100644 (file)
@@ -2981,7 +2981,7 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
        skb->priority = pkt_dev->skb_priority;
 
        memcpy(eth, pkt_dev->hh, 12);
-       *(__be16 *) & eth[12] = protocol;
+       *(__be16 *)&eth[12] = protocol;
 
        /* Eth + IPh + UDPh + mpls */
        datalen = pkt_dev->cur_pkt_size - 14 - 20 - 8 -