]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ath6kl: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 08:51:27 +0000 (09:51 +0100)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 10 Mar 2026 15:27:55 +0000 (08:27 -0700)
commit86581adf05f526f53b90ebcbbc2fd4d9f9fd4c96
treec181f9334d903a1e36eea363438190dd07c892eb
parent8e0ab5b9adb7fec3149441621df1cf15325b7215
wifi: ath6kl: 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>
Link: https://patch.msgid.link/20260306085144.12064-2-johan@kernel.org
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath6kl/usb.c