Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: Fix spelling mistakes and cleanup code

fix follow spelling misktakes:
desconstructed ==> deconstructed
enforcment ==> enforcement

Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: Xie Shaowen <studentxswpy@163.com>
Link: https://lore.kernel.org/r/20220730092254.3102875-1-studentxswpy@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Xie Shaowen and committed by
Jakub Kicinski
062cf5eb 4ff7c8fc

+2 -2
+2 -2
net/dsa/tag_brcm.c
··· 34 34 /* Newer Broadcom tag (4 bytes) */ 35 35 #define BRCM_TAG_LEN 4 36 36 37 - /* Tag is constructed and desconstructed using byte by byte access 37 + /* Tag is constructed and deconstructed using byte by byte access 38 38 * because the tag is placed after the MAC Source Address, which does 39 39 * not make it 4-bytes aligned, so this might cause unaligned accesses 40 40 * on most systems where this is used. ··· 103 103 104 104 brcm_tag = skb->data + offset; 105 105 106 - /* Set the ingress opcode, traffic class, tag enforcment is 106 + /* Set the ingress opcode, traffic class, tag enforcement is 107 107 * deprecated 108 108 */ 109 109 brcm_tag[0] = (1 << BRCM_OPCODE_SHIFT) |