From 463be02921cdbeb4ea4448cdde03223fd9386e52 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 31 Oct 2022 22:37:48 +0800 Subject: [PATCH] Fix usbhost/usbhost_hidmouse.c:1693:13: error: unused function 'usbhost_putle16' Signed-off-by: Xiang Xiao --- drivers/usbhost/usbhost_hidmouse.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/usbhost/usbhost_hidmouse.c b/drivers/usbhost/usbhost_hidmouse.c index bd3e1bcaee..3b1ad6d2da 100644 --- a/drivers/usbhost/usbhost_hidmouse.c +++ b/drivers/usbhost/usbhost_hidmouse.c @@ -326,7 +326,6 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv); /* (Little Endian) Data helpers */ static inline uint16_t usbhost_getle16(const uint8_t *val); -static inline void usbhost_putle16(uint8_t *dest, uint16_t val); /* Transfer descriptor memory management */ @@ -1675,27 +1674,6 @@ static inline uint16_t usbhost_getle16(const uint8_t *val) return (uint16_t)val[1] << 8 | (uint16_t)val[0]; } -/**************************************************************************** - * Name: usbhost_putle16 - * - * Description: - * Put a (possibly unaligned) 16-bit little endian value. - * - * Input Parameters: - * dest - A pointer to the first byte to save the little endian value. - * val - The 16-bit value to be saved. - * - * Returned Value: - * None - * - ****************************************************************************/ - -static void usbhost_putle16(uint8_t *dest, uint16_t val) -{ - dest[0] = val & 0xff; /* Little endian means LS byte first in byte stream */ - dest[1] = val >> 8; -} - /**************************************************************************** * Name: usbhost_tdalloc *