Skip to content
Browse files

tests: usb: desc_sections: Fix coverity issue

Coverity thinks that zassert_*() is debug stuff so move out increment.

Fixes #16163

Signed-off-by: Andrei Emeltchenko <>
  • Loading branch information...
finikorg authored and nashif committed May 17, 2019
1 parent 34bf5dd commit 875d5a2bf66c3a009886f1729cce1d123219cb73
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/subsys/usb/desc_sections/src/desc_sections.c
@@ -189,8 +189,9 @@ static void check_endpoint_allocation(struct usb_desc_header *head)
zassert_not_null(cfg_data, "Check available cfg data");

zassert_true(find_cfg_data_ep(ep_descr, cfg_data,
"Check endpoint config in cfg_data");

head = (struct usb_desc_header *)((u8_t *)head + head->bLength);

0 comments on commit 875d5a2

Please sign in to comment.
You can’t perform that action at this time.