Change in libosmocore[master]: vty: fix 'Unsigned compared against 0' generate_cpu_hex_mask()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Fri Sep 11 13:14:40 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/20079 )


Change subject: vty: fix 'Unsigned compared against 0' generate_cpu_hex_mask()
......................................................................

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

Change-Id: I49549439d5bbfbb83954ba92957304b03062d003
Fixes: CID#212137
---
M src/vty/cpu_sched_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/79/20079/1

diff --git a/src/vty/cpu_sched_vty.c b/src/vty/cpu_sched_vty.c
index f608738..35671a9 100644
--- a/src/vty/cpu_sched_vty.c
+++ b/src/vty/cpu_sched_vty.c
@@ -175,7 +175,7 @@
 		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;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/20079
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I49549439d5bbfbb83954ba92957304b03062d003
Gerrit-Change-Number: 20079
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200911/e2ef0cf0/attachment.htm>


More information about the gerrit-log mailing list