From 6fd08787b662edfbf3bc1cd358d6f9dc4d770fda Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 19 Nov 2022 12:25:39 +0800 Subject: [PATCH] Fix chip/kinetis_usbdev.c:3317:1: error: unused function 'khci_epreserved' Signed-off-by: Xiang Xiao --- arch/arm/src/kinetis/kinetis_usbdev.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm/src/kinetis/kinetis_usbdev.c b/arch/arm/src/kinetis/kinetis_usbdev.c index f6484274b2..5a3d3d006e 100644 --- a/arch/arm/src/kinetis/kinetis_usbdev.c +++ b/arch/arm/src/kinetis/kinetis_usbdev.c @@ -589,8 +589,6 @@ static inline struct khci_ep_s * static inline void khci_epunreserve(struct khci_usbdev_s *priv, struct khci_ep_s *privep); -static inline bool - khci_epreserved(struct khci_usbdev_s *priv, int epno); static void khci_ep0configure(struct khci_usbdev_s *priv); /* Endpoint operations ******************************************************/ @@ -3309,16 +3307,6 @@ khci_epunreserve(struct khci_usbdev_s *priv, struct khci_ep_s *privep) leave_critical_section(flags); } -/**************************************************************************** - * Name: khci_epreserved - ****************************************************************************/ - -static inline bool -khci_epreserved(struct khci_usbdev_s *priv, int epno) -{ - return ((priv->epavail & KHCI_ENDP_BIT(epno)) == 0); -} - /**************************************************************************** * Name: khci_ep0configure ****************************************************************************/