]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw89: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 09:32:06 +0000 (10:32 +0100)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 16 Mar 2026 06:03:39 +0000 (14:03 +0800)
commitc2a21f35cea43c3287a4f314b7aab22ea7234122
treede76c0d7280876324598a4ecc60e96100845a133
parentbbb15e71156cd9f5e1869eee7207a06ea8e96c39
wifi: rtw89: 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/20260306093206.21081-1-johan@kernel.org
drivers/net/wireless/realtek/rtw89/usb.c