]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtl8xxxu: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 08:51:43 +0000 (09:51 +0100)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 16 Mar 2026 05:59:59 +0000 (13:59 +0800)
commit711b8add39294393a086b5c0e51f0c8d79a89f4d
tree552d7da136b10ca9c73043bc1ee6535900d3be48
parent68e7d359a5eeea75197626c800d082955032e30a
wifi: rtl8xxxu: 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-18-johan@kernel.org
drivers/net/wireless/realtek/rtl8xxxu/core.c