[PATCH 01/16] gtp: remove unused local variable

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/OpenBSC@lists.osmocom.org/.

Andreas Schultz aschultz at tpip.net
Mon Nov 16 15:06:42 UTC 2015


Signed-off-by: Andreas Schultz <aschultz at tpip.net>
---
 gtp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gtp.c b/gtp.c
index 7c72eb0..11bda38 100644
--- a/gtp.c
+++ b/gtp.c
@@ -957,7 +957,7 @@ static int ipv4_pdp_add(struct net_device *dev, struct genl_info *info)
 	struct gtp_instance *gti = netdev_priv(dev);
 	struct pdp_ctx *pctx;
 	u16 flow = 0;
-	u32 gtp_version, link, sgsn_addr, ms_addr, hash_ms, hash_tid;
+	u32 gtp_version, sgsn_addr, ms_addr, hash_ms, hash_tid;
 	u64 tid;
 	bool found = false;
 
@@ -986,7 +986,6 @@ static int ipv4_pdp_add(struct net_device *dev, struct genl_info *info)
 		flow = nla_get_u16(info->attrs[GTPA_FLOW]);
 	}
 
-	link = nla_get_u32(info->attrs[GTPA_LINK]);
 	sgsn_addr = nla_get_u32(info->attrs[GTPA_SGSN_ADDRESS]);
 	ms_addr = nla_get_u32(info->attrs[GTPA_MS_ADDRESS]);
 
-- 
2.5.0




More information about the OpenBSC mailing list