From 6063749a3ce8fb63515562a257c7eb2a47eef499 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 4 Nov 2022 18:16:24 +0800 Subject: [PATCH] Fix Error: chip/lpc43_usb0dev.c:905:20: error: unused function 'lpc43_abortrequest' Signed-off-by: Xiang Xiao --- 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 *