Re: [PATCH] hidclass.sys: Handle POP and PUSH in device descriptors
Nov. 14, 2016
1:34 p.m.
+ if (list_count(&caps_stack)) + { + struct caps_stack *entry, *cursor; + ERR("%i unpopped device caps on the stack\n", list_count(&caps_stack)); + LIST_FOR_EACH_ENTRY_SAFE(entry, cursor, &caps_stack, struct caps_stack, entry) + list_remove(&entry->entry); + } + If you only want to check if there's any elements left, it's faster to do list_empty().
3421
Age (days ago)
3421
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov