]> git.ipfire.org Git - thirdparty/linux.git/commit
net: usb: lan78xx: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:50:06 +0000 (11:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Mar 2026 03:19:38 +0000 (19:19 -0800)
commitf4ac0cc88e9949d41bbdd101caa3117afe983ec9
tree7093ea5e81296c87036d78c751249d7cae8149c3
parentf67ab9d8106ef8c265310cb4249387c9f7e9ec9b
net: usb: lan78xx: 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/20260305105006.16415-1-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/lan78xx.c