From bf129c1437794e73d819de3172802fe99051890d Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 5 Nov 2021 20:46:06 +0100 Subject: [PATCH] vty: show tbf: Drop unneeded check for non-null ms Since a while a go, a TBF is guaranteed to always have a MS assigned. Hence, there's no point in checking it. Change-Id: I89e062432ac671c73731ce68c889aeb5e24277f5 --- src/pcu_vty_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index fb7897d1..c2cc9504 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -62,7 +62,7 @@ static void tbf_print_vty_info(struct vty *vty, struct gprs_rlcmac_tbf *tbf) tbf->first_ts, tbf->first_common_ts, tbf->control_ts, tbf->ms_class(), - tbf->ms() ? ms_egprs_ms_class(tbf->ms()) : -1, + ms_egprs_ms_class(tbf->ms()), VTY_NEWLINE); vty_out(vty, " TS_alloc="); for (int i = 0; i < 8; i++) {