]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtl818x: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 08:51:42 +0000 (09:51 +0100)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 16 Mar 2026 05:59:46 +0000 (13:59 +0800)
commit68e7d359a5eeea75197626c800d082955032e30a
tree97c58019ac266e46b312340c90dad15f5208c9b5
parentf8a2fc809bfeb49130709b31a4d357a049f28547
wifi: rtl818x: drop redundant device reference

Driver core holds a reference to the USB interface and its parent USB
device while the interface is bound to a driver and there is no need to
take additional references unless the structures are needed after
disconnect.

Drop the redundant device reference to reduce cargo culting, make it
easier to spot drivers where an extra reference is needed, and reduce
the risk of memory leaks when drivers fail to release it.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260306085144.12064-17-johan@kernel.org
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c