]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76x0u: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 30 Apr 2026 08:33:32 +0000 (10:33 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jun 2026 10:15:20 +0000 (10:15 +0000)
commit7f81b0214c4ee4fb39fbc92ca5aa96dfe890d2ea
tree0f1d1e31f5d39103f4f13e1b559056ceae3c9f8b
parentb350ad117b4266f03e22c68b8057e98035aa059a
wifi: mt76x0u: 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/20260430083335.215239-3-johan@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/usb.c