From 89ead817b7f825b031268e4ef2b7903f7465f1bd Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 24 Sep 2016 08:10:50 -0400 Subject: [PATCH] usb: do not assert on a variable we do not have Jira: ZEP-967 Change-Id: I98ef740bb72f8779079ba2ae469b1079c292840d Signed-off-by: Anas Nashif --- usb/usb_device.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/usb/usb_device.c b/usb/usb_device.c index e7052218b40..b4a79d4f0ab 100644 --- a/usb/usb_device.c +++ b/usb/usb_device.c @@ -352,8 +352,6 @@ static bool usb_get_descriptor(uint16_t type_index, uint16_t lang_id, int32_t cur_index = 0; bool found = false; - __ASSERT_NO_MSG(usb_descriptors != NULL); - /*Avoid compiler warning until this is used for something*/ lang_id = lang_id; @@ -415,8 +413,6 @@ static bool usb_set_configuration(uint8_t config_index, uint8_t alt_setting) uint8_t cur_config = 0; uint8_t cur_alt_setting = 0; - __ASSERT_NO_MSG(usb_descriptors != NULL); - if (config_index == 0) { /* unconfigure device */ SYS_LOG_DBG("Device not configured - invalid configuration "