mirror of
https://github.com/jmwtsn/qmk_firmware.git
synced 2026-06-03 19:53:31 -03:00
Return INVALID_DEFERRED_TOKEN on allocation failure (#26012)
Return the proper deferred_token type instead of boolean false.
This commit is contained in:
@@ -56,7 +56,7 @@ deferred_token defer_exec_advanced(deferred_executor_t *table, size_t table_coun
|
||||
// Work out the new token value, dropping out if none were available
|
||||
deferred_token token = allocate_token(table, table_count);
|
||||
if (token == INVALID_DEFERRED_TOKEN) {
|
||||
return false;
|
||||
return INVALID_DEFERRED_TOKEN;
|
||||
}
|
||||
|
||||
// Set up the executor table entry
|
||||
|
||||
Reference in New Issue
Block a user