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:
Patrik Flykt 2018-11-29 11:12:22 -08:00 committed by Anas Nashif
commit 8ff96b5a57
172 changed files with 693 additions and 693 deletions

View file

@ -58,7 +58,7 @@ void _timer_int_handler(void *arg)
announced_cycles += dticks * CYC_PER_TICK;
ctrl_cache = SysTick->CTRL; /* Reset overflow flag */
ctrl_cache = 0;
ctrl_cache = 0U;
z_clock_announce(TICKLESS ? dticks : 1);
_ExcExit();