summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-02-27 09:11:35 +0700
committerhathach <[email protected]>2023-02-27 09:11:35 +0700
commite34aeb5cf69315d2d7711f0a1d040a28492d026d (patch)
tree823a987b9dae178c1261b3ab5050389c0f44a852 /src/device
parent2e47210c1af88b88b6f2d92fe2b6d08117041363 (diff)
minor clean up
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index ce4ddab66..b8a200845 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -94,7 +94,7 @@ static bool _data_stage_xact(uint8_t rhport)
{
ep_addr = EDPT_CTRL_IN;
if ( xact_len ) {
- TU_VERIFY(tu_memcpy_s(_usbd_ctrl_buf, CFG_TUD_ENDPOINT0_SIZE, _ctrl_xfer.buffer, xact_len)==0);
+ TU_VERIFY(0 == tu_memcpy_s(_usbd_ctrl_buf, CFG_TUD_ENDPOINT0_SIZE, _ctrl_xfer.buffer, xact_len));
}
}