Re: [PATCH] hidclass.sys: Handle POP and PUSH in device descriptors
14 Nov
2016
14 Nov
'16
7:34 a.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().
3406
Age (days ago)
3406
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov