xen/cache-col: address MISRA C Rule 5.3

MISRA C:2012 Rule 5.3 states as following: An identifier declared in an
inner scope shall not hide an identifier declared in an outer scope.

Inside the 'if' block, the inner 'i' shadows the outer 'i'.
Reuse the outer variable and remove the inner declaration to fix that.

No functional change.

Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@epam.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Dmytro Prokopchuk authored and Jan Beulich committed 2026-03-23 11:17:24 +01:00
1 parent e1604ea827
commit a87d5761e2
1 file changed
-2
-2
View File
@@ -193,8 +193,6 @@ void __init llc_coloring_init(void)
if ( !xen_num_colors )
{
unsigned int i;
xen_num_colors = MIN(XEN_DEFAULT_NUM_COLORS, max_nr_colors);
printk(XENLOG_WARNING
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.