This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 6063749a3ce8fb63515562a257c7eb2a47eef499 Author: Xiang Xiao <[email protected]> AuthorDate: Fri Nov 4 18:16:24 2022 +0800 Fix Error: chip/lpc43_usb0dev.c:905:20: error: unused function 'lpc43_abortrequest' Signed-off-by: Xiang Xiao <[email protected]> --- arch/arm/src/lpc43xx/lpc43_usb0dev.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/arm/src/lpc43xx/lpc43_usb0dev.c b/arch/arm/src/lpc43xx/lpc43_usb0dev.c index 80b85a6902..f43e147c65 100644 --- a/arch/arm/src/lpc43xx/lpc43_usb0dev.c +++ b/arch/arm/src/lpc43xx/lpc43_usb0dev.c @@ -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 *
