diff mbox series

usb: dwc3: trace: Remove unused fields in dwc3_log_trb

Message ID 20210527012924.3596-1-jackp@codeaurora.org
State New
Headers show
Series usb: dwc3: trace: Remove unused fields in dwc3_log_trb | expand

Commit Message

Jack Pham May 27, 2021, 1:29 a.m. UTC
From: Mayank Rana <mrana@codeaurora.org>

Commit 0bd0f6d201eb ("usb: dwc3: gadget: remove allocated/queued request
tracking") removed the allocated & queued fields from struct dwc3_ep
but neglected to also remove them from the dwc3_log_trb event class's
TP_STRUCT definition which are now unused. Remove them to save eight
bytes per trace event entry.

Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
---
 drivers/usb/dwc3/trace.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Felipe Balbi May 28, 2021, 10:06 a.m. UTC | #1
Jack Pham <jackp@codeaurora.org> writes:

> From: Mayank Rana <mrana@codeaurora.org>

>

> Commit 0bd0f6d201eb ("usb: dwc3: gadget: remove allocated/queued request

> tracking") removed the allocated & queued fields from struct dwc3_ep

> but neglected to also remove them from the dwc3_log_trb event class's

> TP_STRUCT definition which are now unused. Remove them to save eight

> bytes per trace event entry.

>

> Signed-off-by: Mayank Rana <mrana@codeaurora.org>

> Signed-off-by: Jack Pham <jackp@codeaurora.org>


Acked-by: Felipe Balbi <balbi@kernel.org>


-- 
balbi
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/trace.h b/drivers/usb/dwc3/trace.h
index 51d18e8d1602..cb998ba50fea 100644
--- a/drivers/usb/dwc3/trace.h
+++ b/drivers/usb/dwc3/trace.h
@@ -222,8 +222,6 @@  DECLARE_EVENT_CLASS(dwc3_log_trb,
 	TP_STRUCT__entry(
 		__string(name, dep->name)
 		__field(struct dwc3_trb *, trb)
-		__field(u32, allocated)
-		__field(u32, queued)
 		__field(u32, bpl)
 		__field(u32, bph)
 		__field(u32, size)