drivers: Add 'U' to unsigned variable assignments
Add 'U' to a value when assigning it to an unsigned variable. MISRA-C rule 7.2 Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
25e8e4d4e7
commit
8ff96b5a57
172 changed files with 693 additions and 693 deletions
|
@ -775,7 +775,7 @@ static void tx_queue_drop(struct stream *stream)
|
|||
{
|
||||
size_t size;
|
||||
void *mem_block;
|
||||
unsigned int n = 0;
|
||||
unsigned int n = 0U;
|
||||
|
||||
while (queue_get(&stream->mem_block_queue, &mem_block, &size) == 0) {
|
||||
k_mem_slab_free(stream->cfg.mem_slab, &mem_block);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue