]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa: drop rtldsa_get_mib_desc() 22219/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 28 Feb 2026 20:24:09 +0000 (21:24 +0100)
committerRobert Marko <robimarko@gmail.com>
Tue, 3 Mar 2026 12:06:32 +0000 (13:06 +0100)
commit24335722f6bbdf0cda00c6c51ca756627cab13a8
tree25092b7d206c4020197402daa832bf5d3c5730e1
parent5fad34e5f0b79efa46a292f5309fca2b1c74b158
realtek: dsa: drop rtldsa_get_mib_desc()

rtldsa_get_mib_desc() is always well defined and only looks into
the configuration structure. Drop it and use direct data assignment
where needed. While we are here drop all NULL checks because
mib_desc is never unset.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22219
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c