pkarashchenko commented on code in PR #9508:
URL: https://github.com/apache/nuttx/pull/9508#discussion_r1225473694
##########
arch/arm/src/nrf52/nrf52_usbd.c:
##########
@@ -1020,18 +1032,26 @@ static void nrf52_epin_transfer(struct nrf52_ep_s
*privep, uint8_t *buf,
DEBUGASSERT(privep->eptype != USB_EP_ATTR_XFER_ISOC);
DEBUGASSERT(nbytes <= 64);
- if (nbytes > 0)
- {
- /* Configure EasyDMA */
+ /* Configure EasyDMA */
+ if (buf)
Review Comment:
```suggestion
if (buf != NULL)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]