diff options
author | Anas Nashif <anas.nashif@intel.com> | 2016-09-24 08:10:50 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-09-24 08:12:35 -0400 |
commit | 89ead817b7f825b031268e4ef2b7903f7465f1bd (patch) | |
tree | 0d16facf27e35c36bc60d4bb2a86e3a650ffc964 /usb | |
parent | 4dd1ca2c1a55e380cd0e04e6977e0755f3b53859 (diff) |
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>
Diffstat (limited to 'usb')
-rw-r--r-- | usb/usb_device.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/usb/usb_device.c b/usb/usb_device.c index e7052218b..b4a79d4f0 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 " |