]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpaa2-switch: remove duplicated check for the maximum number of VLANs
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 28 May 2026 17:34:50 +0000 (20:34 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Jun 2026 02:13:18 +0000 (19:13 -0700)
commit9e9f5e2998052c49e506b8307e5bca7584600a3a
tree966a9b696f4e256a772f02d2bc68cab53e026e20
parent74c1c9f5c0c30bbd0c2cf87b6e3507e7ea46c13d
dpaa2-switch: remove duplicated check for the maximum number of VLANs

The check for the maximum number of VLANs is exactly duplicated twice in
the dpaa2_switch_port_vlans_add() function. Remove one of the instances
so that we do not have dead code.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://patch.msgid.link/20260528173452.1953102-4-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c