vty: fix 'Unsigned compared against 0' generate_cpu_hex_mask()

Change-Id: I49549439d5bbfbb83954ba92957304b03062d003
Fixes: CID#212137
This commit is contained in:
Vadim Yanitskiy 2020-09-11 20:13:19 +07:00
parent b89114b3fa
commit e0ed147984
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ static int generate_cpu_hex_mask(char *str, size_t str_buf_size,
if (CPU_ISSET_S(cpu + 3, cpuset_size, cpuset))
val |= 0x08;
if (val >= 0 && val < 10)
if (val < 10)
*ptr = '0' + val;
else
*ptr = ('a' - 10) + val;