Fix chip/kinetis_usbdev.c:3317:1: error: unused function 'khci_epreserved'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 12:25:39 +08:00 committed by Petro Karashchenko
parent 232360cbd0
commit 6fd08787b6

View File

@ -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
****************************************************************************/