[MERGED] osmo-sgsn[master]: cosmetic: use macro for gtphub plane iteration

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Dec 26 22:21:54 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: cosmetic: use macro for gtphub plane iteration
......................................................................


cosmetic: use macro for gtphub plane iteration

Change-Id: If82fcd9f6509da60e6f0d916fe107de1b38bfd18
---
M src/gprs/gtphub.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/gprs/gtphub.c b/src/gprs/gtphub.c
index 5e962f2..76eebb1 100644
--- a/src/gprs/gtphub.c
+++ b/src/gprs/gtphub.c
@@ -1517,7 +1517,7 @@
 	int ie_mandatory = (p->type == GTP_CREATE_PDP_REQ);
 	unsigned int side_idx = p->side_idx;
 
-	for (plane_idx = 0; plane_idx < 2; plane_idx++) {
+	for_each_plane(plane_idx) {
 		int rc;
 		struct gsn_addr use_addr;
 		uint16_t use_port;

-- 
To view, visit https://gerrit.osmocom.org/5528
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If82fcd9f6509da60e6f0d916fe107de1b38bfd18
Gerrit-PatchSet: 2
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list