]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ath10k: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 08:51:30 +0000 (09:51 +0100)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 10 Mar 2026 15:27:55 +0000 (08:27 -0700)
commitc880c0794076f04b0058dd5cbc1f94c33d7bff44
tree3f47cd99c503787faba68d8b86732424cd8e762d
parent2ddbec82e1650d57ea0f63d284b5da01d2f21293
wifi: ath10k: 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-5-johan@kernel.org
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath10k/usb.c