usb: do not assert on a variable we do not have

Jira: ZEP-967
Change-Id: I98ef740bb72f8779079ba2ae469b1079c292840d
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-09-24 08:10:50 -04:00
commit 89ead817b7

View file

@ -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 "