Change in osmo-bts[master]: vty.c: remove assert for always true condition

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/.

osmith gerrit-no-reply at lists.osmocom.org
Fri Oct 18 08:09:40 UTC 2019


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/15805 )


Change subject: vty.c: remove assert for always true condition
......................................................................

vty.c: remove assert for always true condition

Remove OSMO_ASSERT(sapi != -EINVAL) statements, because sapi is an
uint8_t and therefore can never be less than zero.

Fixes: CID#205066, CID#205069
Change-Id: I4d30afacfab93051868ae8f462cee9ad3dbc7fd0
---
M src/common/vty.c
1 file changed, 0 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/05/15805/1

diff --git a/src/common/vty.c b/src/common/vty.c
index 865c236..7c043e1 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1607,7 +1607,6 @@
 	struct log_target *tgt = osmo_log_vty2tgt(vty);
 	uint16_t **sapi_mask;
 
-	OSMO_ASSERT(sapi != -EINVAL);
 	if (!tgt)
 		return CMD_WARNING;
 
@@ -1628,7 +1627,6 @@
 	struct log_target *tgt = osmo_log_vty2tgt(vty);
 	uint16_t *sapi_mask;
 
-	OSMO_ASSERT(sapi != -EINVAL);
 	if (!tgt)
 		return CMD_WARNING;
 	if (!tgt->filter_data[LOG_FLT_L1_SAPI])

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I4d30afacfab93051868ae8f462cee9ad3dbc7fd0
Gerrit-Change-Number: 15805
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191018/df8b562e/attachment.htm>


More information about the gerrit-log mailing list