gprs-ns2: Fix stringification of NS/FR NSVCI

Before this commit, gprs_ns2_ll_str_buf() would always return an empty
string.

Change-Id: I6ec07f58fa5cbb7ec4be967b2c72ae75935e4f75
This commit is contained in:
Harald Welte 2020-12-01 17:18:54 +01:00
parent 48bd76cbc0
commit 37322bc714
1 changed files with 0 additions and 5 deletions

View File

@ -261,11 +261,6 @@ char *gprs_ns2_ll_str_buf(char *buf, size_t buf_len, struct gprs_ns2_vc *nsvc)
snprintf(buf, buf_len, "frgre)");
break;
case GPRS_NS2_LL_FR:
if (!gprs_ns2_is_frgre_bind(nsvc->bind)) {
buf[0] = '\0';
return buf;
}
snprintf(buf, buf_len, "fr)netif: %s dlci: %u", gprs_ns2_fr_bind_netif(nsvc->bind),
gprs_ns2_fr_nsvc_dlci(nsvc));
break;