]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: most/net: remove dead code from skb_to_mamac() and skb_to_mep()
authorHadi Chokr <hadichokr@icloud.com>
Wed, 1 Apr 2026 12:57:11 +0000 (14:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Apr 2026 11:01:51 +0000 (05:01 -0600)
commit62cf6eb023a89dee27e2413c5a503468e07e0f4a
tree4ea148e76f3a6cfe97dc1afd8be05dcd796a57eb
parentfde67f5b1fc77f3c6701b31751643c11526927bc
staging: most/net: remove dead code from skb_to_mamac() and skb_to_mep()

The overflow checks in skb_to_mamac() and skb_to_mep() are always false:

  mdp_len = (skb->len - ETH_HLEN) + MDP_HDR_LEN = skb->len + 2
  mep_len = skb->len + MEP_HDR_LEN = skb->len + 8

Remove these checks to clean up the code.

Signed-off-by: Hadi Chokr <hadichokr@icloud.com>
Link: https://patch.msgid.link/20260401125711.80822-1-hadichokr@icloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/net/net.c