From 4831851ca32c0ff8c54200843b178b5249b01dc0 Mon Sep 17 00:00:00 2001 From: Keith Date: Sat, 10 Oct 2020 15:19:59 +0200 Subject: [PATCH] Minor: remove code duplication Change-Id: Id18ebcd3b3c20ce28e383edf9354e9f8516e1e81 --- gtp/pdp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtp/pdp.c b/gtp/pdp.c index 518f5d4..2be2dd3 100644 --- a/gtp/pdp.c +++ b/gtp/pdp.c @@ -338,9 +338,7 @@ int pdp_getimsi(struct pdp_t **pdp, uint64_t imsi, uint8_t nsapi) int gtp_pdp_getimsi(struct gsn_t *gsn, struct pdp_t **pdp, uint64_t imsi, uint8_t nsapi) { - return gtp_pdp_tidget(gsn, pdp, - (imsi & 0x0fffffffffffffffull) + - ((uint64_t) nsapi << 60)); + return gtp_pdp_tidget(gsn, pdp, pdp_gettid(imsi, nsapi)); }