soc: 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:16:15 -08:00 committed by Anas Nashif
commit 8325a395ea
4 changed files with 6 additions and 6 deletions

View file

@ -205,14 +205,14 @@ static void soc_read_bootstraps(void)
switch (bootstrap) {
case SOC_S1000_STRAP_REF_CLK_19P2:
ref_clk_freq = 19200000;
ref_clk_freq = 19200000U;
break;
case SOC_S1000_STRAP_REF_CLK_24P576:
ref_clk_freq = 24576000;
ref_clk_freq = 24576000U;
break;
case SOC_S1000_STRAP_REF_CLK_38P4:
default:
ref_clk_freq = 38400000;
ref_clk_freq = 38400000U;
break;
}
}