From cfd6ac646224c59fc3f46c9e4ef9f7fecb6c1407 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 21 Jul 2019 09:22:19 +0200 Subject: tdef: remove bogus OSMO_ASSERT(unsigned long >= 0) Change-Id: I7a544d2d43b83135def296674f777e48fe5fd80a Closes: CID#190866 --- src/tdef.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tdef.c b/src/tdef.c index 9d5d7363..3cfb17c0 100644 --- a/src/tdef.c +++ b/src/tdef.c @@ -187,7 +187,6 @@ unsigned long osmo_tdef_get(const struct osmo_tdef *tdefs, int T, enum osmo_tdef { const struct osmo_tdef *t = osmo_tdef_get_entry((struct osmo_tdef*)tdefs, T); if (!t) { - OSMO_ASSERT(val_if_not_present >= 0); return val_if_not_present; } return osmo_tdef_round(t->val, t->unit, as_unit); -- cgit v1.2.3