From beb5481164e15951b7265365018a298e7535f6b8 Mon Sep 17 00:00:00 2001 From: egrissinofender Date: Wed, 16 Oct 2024 12:21:05 -0400 Subject: [PATCH] MCUS-162 Remove uneeded check causing warning --- include/zephyr/usb/usbd_msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zephyr/usb/usbd_msg.h b/include/zephyr/usb/usbd_msg.h index 13d0f01ef047a6..3cfed9351a8d18 100644 --- a/include/zephyr/usb/usbd_msg.h +++ b/include/zephyr/usb/usbd_msg.h @@ -93,7 +93,7 @@ struct usbd_msg { */ static inline const char *usbd_msg_type_string(const enum usbd_msg_type type) { - if (type >= 0 && type < USBD_MSG_MAX_NUMBER) { + if (type < USBD_MSG_MAX_NUMBER) { return usbd_msg_type_list[type]; }