summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-09-17 00:46:29 +0700
committerhathach <[email protected]>2021-09-17 00:46:29 +0700
commitb363afc091b1cccafd7ebaf6365a6f655037d986 (patch)
tree941131778fae07841e976a80aa8239180e5292ef /src
parentc65cc75c6b9369a384e3266ce28ea043607230d2 (diff)
minor clean up
Diffstat (limited to 'src')
-rw-r--r--src/portable/nxp/khci/dcd_khci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/nxp/khci/dcd_khci.c b/src/portable/nxp/khci/dcd_khci.c
index 3bb40aeb2..ff1997440 100644
--- a/src/portable/nxp/khci/dcd_khci.c
+++ b/src/portable/nxp/khci/dcd_khci.c
@@ -192,7 +192,7 @@ static void process_tokdne(uint8_t rhport)
dcd_event_xfer_complete(rhport,
tu_edpt_addr(epnum, dir),
length - remaining, XFER_RESULT_SUCCESS, true);
- if (0 == (s & USB_STAT_ENDP_MASK) && 0 == length) {
+ if (0 == epnum && 0 == length) {
/* After completion a ZLP of control transfer,
* it prepares for the next steup transfer. */
if (_dcd.addr) {