Message ID | 20250410071749.30505-3-ps.report@gmx.net (mailing list archive) |
---|---|
State | Superseded |
Commit | eb1fd49ef660ddba36c91667594caf5d91a6d62e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: pktgen: fix checkpatch code style errors/warnings | expand |
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index fe89384d56d0..a54683d9d44a 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 -
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> --- net/core/pktgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)