Skip to content

USB: drop redundant references

Johan Hovold linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5USB: cypress_cy7c63: drop redundant device referencedrivers/usb/misc/cypress_cy7c63.c+1 -30 replies
2/5USB: cytherm: drop redundant device referencedrivers/usb/misc/cytherm.c+1 -30 replies
3/5USB: ljca: drop redundant interface referencedrivers/usb/misc/usb-ljca.c+5 -101 reply
4/5USB: trancevibrator: drop redundant device referencedrivers/usb/misc/trancevibrator.c+1 -20 replies
5/5USB: usbsevseg: drop redundant device referencedrivers/usb/misc/usbsevseg.c+1 -20 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchSakari Ailus
1/5
2/5
3/5A-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] USB: drop redundant references

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 redundant references 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 them.

Johan

Johan Hovold (5):
USB: cypress_cy7c63: drop redundant device reference
USB: cytherm: drop redundant device reference
USB: ljca: drop redundant interface reference
USB: trancevibrator: drop redundant device reference
USB: usbsevseg: drop redundant device reference

 drivers/usb/misc/cypress_cy7c63.c |  4 +---
 drivers/usb/misc/cytherm.c        |  4 +---
 drivers/usb/misc/trancevibrator.c |  3 +--
 drivers/usb/misc/usb-ljca.c       | 15 +++++----------
 drivers/usb/misc/usbsevseg.c      |  3 +--
 5 files changed, 9 insertions(+), 20 deletions(-)
Signature · 1 line
2.52.0