aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty_functions.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-11-05 20:46:06 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-11-05 20:46:08 +0100
commitbf129c1437794e73d819de3172802fe99051890d (patch)
treedb6f7d6e06e1ccc9f6c090a9cd01d5604f399431 /src/pcu_vty_functions.cpp
parent14015124ed0c75437470e0e315eae274d0629f2b (diff)
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
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r--src/pcu_vty_functions.cpp2
1 files changed, 1 insertions, 1 deletions
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++) {