]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: replace __free() auto-cleanup stuff 23694/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 2 Jun 2026 21:44:22 +0000 (21:44 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 7 Jun 2026 17:03:43 +0000 (19:03 +0200)
commit9b3f3a71746113bee44c6ad6a0bdab53809bee13
tree4befd627f49070d3f69f5d766b7cd7358ac06e02
parent9fb5a25659c6bd5f983ffc9c6c900fd922a3abe0
realtek: pcs: replace __free() auto-cleanup stuff

Upstream netdev maintainers disregard both variable declarations
mid-function and usage of __free() for auto-cleanup [1]. To avoid any
pain when trying to upstream the PCS driver at some point, adjust that
now before forgetting it.

[1] https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#using-device-managed-and-cleanup-h-constructs

Link: https://github.com/openwrt/openwrt/pull/23694
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c