]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mdio: rtl9300: use scoped for loops
authorRosen Penev <rosenp@gmail.com>
Wed, 17 Dec 2025 21:01:53 +0000 (13:01 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Sun, 28 Dec 2025 07:55:48 +0000 (08:55 +0100)
commita4f800c4487dc5d6fcc28da89c7cc3c187ccc731
tree74155a631fe7fc602ea9a0ed461cb943d11200a0
parentd42bce414d1c5c0b536758466a1f63ac358e613c
net: mdio: rtl9300: use scoped for loops

Currently in the return path, fwnode_handle_put calls are missing. Just use
_scoped to avoid the issue.

Fixes: 24e31e474769 ("net: mdio: Add RTL9300 MDIO driver")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20251217210153.14641-1-rosenp@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/mdio/mdio-realtek-rtl9300.c