[PATCH 0/2] gpib: drop redundant device reference

Johan Hovold posted 2 patches 1 month ago
drivers/gpib/agilent_82357a/agilent_82357a.c | 5 +----
drivers/gpib/ni_usb/ni_usb_gpib.c            | 4 ----
2 files changed, 1 insertion(+), 8 deletions(-)
[PATCH 0/2] gpib: drop redundant device reference
Posted by Johan Hovold 1 month ago
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.

Johan


Johan Hovold (2):
  gpib: agilent_82357a: drop redundant device reference
  gpib: ni_usb: drop redundant device reference

 drivers/gpib/agilent_82357a/agilent_82357a.c | 5 +----
 drivers/gpib/ni_usb/ni_usb_gpib.c            | 4 ----
 2 files changed, 1 insertion(+), 8 deletions(-)

-- 
2.52.0