mirror of https://gerrit.osmocom.org/libosmocore
vty: fix 'Unsigned compared against 0' generate_cpu_hex_mask()
Change-Id: I49549439d5bbfbb83954ba92957304b03062d003 Fixes: CID#212137
This commit is contained in:
parent
b89114b3fa
commit
e0ed147984
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue