HV: Using one assignment in for loop statement
To follow Misra-C standard, only one assignment is allowed in both initialization and update statement. Noncompliant example: for (i = 0, a = arry[0]; ...; i++, a = arry[i]){...} Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
parent
dd695f3cfa
commit
0bed25745b
|
@ -620,9 +620,8 @@ void init_paging(void)
|
||||||
attr_uc);
|
attr_uc);
|
||||||
|
|
||||||
/* Modify WB attribute for E820_TYPE_RAM */
|
/* Modify WB attribute for E820_TYPE_RAM */
|
||||||
for (i = 0U, entry = &e820[0];
|
for (i = 0U; i < e820_entries; i++) {
|
||||||
i < e820_entries;
|
entry = &e820[i];
|
||||||
i++, entry = &e820[i]) {
|
|
||||||
if (entry->type == E820_TYPE_RAM) {
|
if (entry->type == E820_TYPE_RAM) {
|
||||||
modify_mem(&map_params, (void *)entry->baseaddr,
|
modify_mem(&map_params, (void *)entry->baseaddr,
|
||||||
(void *)entry->baseaddr,
|
(void *)entry->baseaddr,
|
||||||
|
|
Loading…
Reference in New Issue