]> git.hungrycats.org Git - linux/commit
wifi: mt76: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 30 Apr 2026 08:33:31 +0000 (10:33 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jun 2026 10:15:20 +0000 (10:15 +0000)
commitb350ad117b4266f03e22c68b8057e98035aa059a
tree2b1804ba38ac36e9a2698646f7155a26ce9ffbda
parent7fae097aa9a56c30febf539d72ef3773165d3aa3
wifi: mt76: 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-2-johan@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/usb.c