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:
parent
4dd1ca2c1a
commit
89ead817b7
1 changed files with 0 additions and 4 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue