]> git.ipfire.org Git - thirdparty/linux.git/commit
gpib: agilent_82357a: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:27:44 +0000 (11:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2026 10:48:54 +0000 (11:48 +0100)
commitd35da40ec364ff9e763e7fd3198ca14cf39d39bf
treec9fa71e8998990a223333badd47ca281637577b1
parent04576813544d141b50e7e80e2f447b88235c61d7
gpib: agilent_82357a: 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/20260305102745.12032-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpib/agilent_82357a/agilent_82357a.c