usb: dwc3: remove unused sg struct member
Subsystems (2)
PATCH v4 1/1 usb: dwc3: remove unused sg struct member
The sg (scatter-gather list pointer) member of the dwc3_request struct is no longer used and should be removed. This patch eliminates the unused member, cleaning up the struct.
This change improves code clarity and avoids maintaining unnecessary members in the structure.
---
v2: remove unused sg struct member as per review[1] v3:
- Add reported-by tag as per review [2]
- Carry over reviewed-by tag from v2 [3]
- Update commit subject to reflect maintainers
- Update commit message to reflect actual change gathered from Thinh Nguyen's feedback
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/2024111922-pantyhose-panorama-6f16@gregkh/
[3] https://lore.kernel.org/all/5l65sdskdzbehxamff5ax4ptiqhaxh7ewi4umtpp6ynen45nj6@nebuxjg4c4rx/
v4:
- Remove out of context paragraph from commit message as per
Thinh Nguyen's[1]
- Fix Reported-by, correctly attribute report to Stephen Rothwell
[1] https://lore.kernel.org/all/[email protected]/
--- drivers/usb/dwc3/core.h | 1 - 1 file changed, 1 deletion(-)
drivers/usb/dwc3/core.h +0 -1
@@ -956,7 +956,6 @@ struct dwc3_request {struct usb_request request;struct list_head list;struct dwc3_ep *dep; -struct scatterlist *sg;struct scatterlist *start_sg;unsigned int num_pending_sgs;
Signature · 1 line
2.47.0
Quoted 48 lines · Luis Felipe Hernandez
The sg (scatter-gather list pointer) member of the
dwc3_requeststruct is no longer used and should be removed. This patch eliminates the unused member, cleaning up the struct.This change improves code clarity and avoids maintaining unnecessary members in the structure.
Reviewed-by Ricardo B. Marliere <[email protected]>Reported-by Stephen Rothwell <[email protected]>Signed-off-by Luis Felipe Hernandez <[email protected]>---
v2: remove unused sg struct member as per review[1] v3:
- Add reported-by tag as per review [2]
- Carry over reviewed-by tag from v2 [3]
- Update commit subject to reflect maintainers
- Update commit message to reflect actual change gathered from Thinh Nguyen's feedback[1] https://urldefense.com/v3/__https://lore.kernel.org/all/[email protected]/__;!!A4F2R9G_pg!eBhj52Qaf_wGZmK74SLHSw2uJlwWgyHE70QFVO3aX8FgZPyykzdriHqQGG88l9Gabsn_lXOPzzuUTERGxVOb0dgD-sCH4TU$
[2] https://urldefense.com/v3/__https://lore.kernel.org/all/2024111922-pantyhose-panorama-6f16@gregkh/__;!!A4F2R9G_pg!eBhj52Qaf_wGZmK74SLHSw2uJlwWgyHE70QFVO3aX8FgZPyykzdriHqQGG88l9Gabsn_lXOPzzuUTERGxVOb0dgDxMWDM-0$
[3] https://urldefense.com/v3/__https://lore.kernel.org/all/5l65sdskdzbehxamff5ax4ptiqhaxh7ewi4umtpp6ynen45nj6@nebuxjg4c4rx/__;!!A4F2R9G_pg!eBhj52Qaf_wGZmK74SLHSw2uJlwWgyHE70QFVO3aX8FgZPyykzdriHqQGG88l9Gabsn_lXOPzzuUTERGxVOb0dgDs-MF_6M$
v4:
- Remove out of context paragraph from commit message as per
Thinh Nguyen's[1]
- Fix Reported-by, correctly attribute report to Stephen Rothwell--- drivers/usb/dwc3/core.h | 1 - 1 file changed, 1 deletion(-)drivers/usb/dwc3/core.h +0
-1@@ -956,7 +956,6 @@ struct dwc3_request {struct usb_request request;struct list_head list;struct dwc3_ep *dep; -struct scatterlist *sg;struct scatterlist *start_sg;unsigned int num_pending_sgs;Signature · 1 line
2.47.0
Thanks,
Thinh