Skip to content

nfc: drop redundant USB device references

Johan Hovold lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2nfc: pn533: drop redundant device referencedrivers/nfc/pn533/usb.c+1 -30 repliesApplied
2/2nfc: port100: drop redundant device referencedrivers/nfc/port100.c+1 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nfc: drop redundant USB device 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 device 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 (2):
nfc: pn533: drop redundant device reference
nfc: port100: drop redundant device reference

 drivers/nfc/pn533/usb.c | 4 +---
 drivers/nfc/port100.c   | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
Signature · 1 line
2.52.0