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:
parent
a76e37a707
commit
8325a395ea
4 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue