]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: ath9k: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 08:51:29 +0000 (09:51 +0100)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 10 Mar 2026 15:27:55 +0000 (08:27 -0700)
commit2ddbec82e1650d57ea0f63d284b5da01d2f21293
treead31bcda00b65c9a2ce0045395bf5f40d20e8b65
parent0bc013d68a5d1943728d110d759c6587c2b81913
wifi: ath9k: 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>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20260306085144.12064-4-johan@kernel.org
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath9k/hif_usb.c