From: Peter Seiderer Date: Thu, 10 Apr 2025 07:17:39 +0000 (+0200) Subject: net: pktgen: fix code style (ERROR: space prohibited after that '&') X-Git-Tag: v6.16-rc1~132^2~319^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb1fd49ef660ddba36c91667594caf5d91a6d62e;p=thirdparty%2Flinux.git net: pktgen: fix code style (ERROR: space prohibited after that '&') 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 Reviewed-by: Toke Høiland-Jørgensen Signed-off-by: Jakub Kicinski --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index fe89384d56d0d..a54683d9d44ae 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -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 *)ð[12] = protocol; /* Eth + IPh + UDPh + mpls */ datalen = pkt_dev->cur_pkt_size - 14 - 20 - 8 -