]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: at76c50x: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 08:51:32 +0000 (09:51 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Mar 2026 09:55:28 +0000 (10:55 +0100)
commitc882b7a603eff6d4a368678dd53beb7413a8414a
tree1b531ac9f8dd6074a60e8529e32de0dd0fc61fa1
parent4e0417a00971cd621e568396c18109f96be2a01d
wifi: at76c50x: 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-7-johan@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/atmel/at76c50x-usb.c