Fix Error: chip/lpc43_usb0dev.c:905:20: error: unused function 'lpc43_abortrequest'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
7c88ef1e6a
commit
6063749a3c
@ -377,8 +377,6 @@ static inline void lpc43_set_address(struct lpc43_usbdev_s *priv,
|
||||
static void lpc43_flushep(struct lpc43_ep_s *privep);
|
||||
|
||||
static int lpc43_progressep(struct lpc43_ep_s *privep);
|
||||
static inline void lpc43_abortrequest(struct lpc43_ep_s *privep,
|
||||
struct lpc43_req_s *privreq, int16_t result);
|
||||
static void lpc43_reqcomplete(struct lpc43_ep_s *privep,
|
||||
struct lpc43_req_s *privreq, int16_t result);
|
||||
|
||||
@ -894,30 +892,6 @@ static int lpc43_progressep(struct lpc43_ep_s *privep)
|
||||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: lpc43_abortrequest
|
||||
*
|
||||
* Description:
|
||||
* Discard a request
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline void lpc43_abortrequest(struct lpc43_ep_s *privep,
|
||||
struct lpc43_req_s *privreq,
|
||||
int16_t result)
|
||||
{
|
||||
usbtrace(TRACE_DEVERROR(LPC43_TRACEERR_REQABORTED),
|
||||
(uint16_t)privep->epphy);
|
||||
|
||||
/* Save the result in the request structure */
|
||||
|
||||
privreq->req.result = result;
|
||||
|
||||
/* Callback to the request completion handler */
|
||||
|
||||
privreq->req.callback(&privep->ep, &privreq->req);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: lpc43_reqcomplete
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user