Skip to content

Commit 4873066

Browse files
pseidererNipaLocal
authored and
NipaLocal
committed
net: pktgen: fix code style (ERROR: space prohibited after that '&')
Fix checkpatch code style errors/checks: CHECK: No space is necessary after a cast kernel-patches#2984: FILE: net/core/pktgen.c:2984: + *(__be16 *) & eth[12] = protocol; ERROR: space prohibited after that '&' (ctx:WxW) kernel-patches#2984: FILE: net/core/pktgen.c:2984: + *(__be16 *) & eth[12] = protocol; Signed-off-by: Peter Seiderer <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent f451138 commit 4873066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/pktgen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2981,7 +2981,7 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
29812981
skb->priority = pkt_dev->skb_priority;
29822982

29832983
memcpy(eth, pkt_dev->hh, 12);
2984-
*(__be16 *) & eth[12] = protocol;
2984+
*(__be16 *)&eth[12] = protocol;
29852985

29862986
/* Eth + IPh + UDPh + mpls */
29872987
datalen = pkt_dev->cur_pkt_size - 14 - 20 - 8 -

0 commit comments

Comments
 (0)