From 44ea8db61c76a11aa791dee4bde5fdb786e0bce0 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Thu, 5 Feb 2026 15:22:12 +0100 Subject: [PATCH] usb: host: Correct function prototype Correct function prototype which causes a compiler warning and builds to fail due to it. Signed-off-by: Alberto Escolar Piedras --- subsys/usb/host/usbh_desc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/usb/host/usbh_desc.h b/subsys/usb/host/usbh_desc.h index dffac653083df..219c60b996c40 100644 --- a/subsys/usb/host/usbh_desc.h +++ b/subsys/usb/host/usbh_desc.h @@ -89,8 +89,7 @@ int usbh_desc_fill_filter(const struct usb_desc_header *desc, * @return true if the descriptor size and type are correct * @return false if the descriptor size or type is wrong */ -const bool usbh_desc_is_valid(const void *const desc, - const size_t size, const uint8_t type); +bool usbh_desc_is_valid(const void *const desc, const size_t size, const uint8_t type); /** * @brief Checks that the pointed descriptor is an interface descriptor.