Change in osmo-ggsn[master]: Minor: remove code duplication

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

keith gerrit-no-reply at lists.osmocom.org
Sun Oct 11 08:54:01 UTC 2020


keith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/20535 )


Change subject: Minor: remove code duplication
......................................................................

Minor: remove code duplication

Change-Id: Id18ebcd3b3c20ce28e383edf9354e9f8516e1e81
---
M gtp/pdp.c
1 file changed, 1 insertion(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/35/20535/1

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 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));
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/20535
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: Id18ebcd3b3c20ce28e383edf9354e9f8516e1e81
Gerrit-Change-Number: 20535
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201011/05c27847/attachment.htm>


More information about the gerrit-log mailing list