Skip to content

Commit 2c1ff26

Browse files
committed
(void) rhport for unused parameter
1 parent 930c682 commit 2c1ff26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ void dcd_edpt_close_all (uint8_t rhport)
375375

376376
void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
377377
{
378+
(void) rhport;
379+
378380
uint8_t ep_id = ep_addr2id(ep_addr);
379381
_dcd.ep[ep_id][0].active = _dcd.ep[ep_id][0].active = 0; // TODO proper way is to EPSKIP then wait ep[][].active then write ep[][].disable (see table 778 in LPC55S69 Use Manual)
380382
_dcd.ep[ep_id][0].disable = _dcd.ep[ep_id][1].disable = 1;
@@ -403,8 +405,6 @@ static void prepare_ep_xfer(uint8_t rhport, uint8_t ep_id, uint16_t buf_offset,
403405

404406
bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t* buffer, uint16_t total_bytes)
405407
{
406-
(void) rhport;
407-
408408
uint8_t const ep_id = ep_addr2id(ep_addr);
409409

410410
tu_memclr(&_dcd.dma[ep_id], sizeof(xfer_dma_t));

0 commit comments

Comments
 (0)