Skip to content

Commit 45fae3d

Browse files
committed
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 <alberto.escolar.piedras@nordicsemi.no>
1 parent a8007b2 commit 45fae3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎subsys/usb/host/usbh_desc.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ int usbh_desc_fill_filter(const struct usb_desc_header *desc,
8989
* @return true if the descriptor size and type are correct
9090
* @return false if the descriptor size or type is wrong
9191
*/
92-
const bool usbh_desc_is_valid(const void *const desc,
93-
const size_t size, const uint8_t type);
92+
bool usbh_desc_is_valid(const void *const desc, const size_t size, const uint8_t type);
9493

9594
/**
9695
* @brief Checks that the pointed descriptor is an interface descriptor.

0 commit comments

Comments
 (0)