Vadim Yanitskiy has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/12351 )

Change subject: host/layer23/sap_interface.c: cosmetic: use ARRAY_SIZE()
......................................................................

host/layer23/sap_interface.c: cosmetic: use ARRAY_SIZE()

Change-Id: I3a2908bf11300ec681beddb5a54f9a62ca5430ae
---
M src/host/layer23/src/common/sap_interface.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Stefan Sperling: Looks good to me, but someone else must approve
  Max: Looks good to me, approved



diff --git a/src/host/layer23/src/common/sap_interface.c 
b/src/host/layer23/src/common/sap_interface.c
index 936beb3..a32c3aa 100644
--- a/src/host/layer23/src/common/sap_interface.c
+++ b/src/host/layer23/src/common/sap_interface.c
@@ -177,7 +177,7 @@
                                get_value_string(sap_result_names, 
param->value[0]));
        }

-       if(param->value[0] > sizeof(sap_result_names)/sizeof(struct 
value_string)){
+       if(param->value[0] > ARRAY_SIZE(sap_result_names)){
                return -1;
        }


--
To view, visit https://gerrit.osmocom.org/12351
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a2908bf11300ec681beddb5a54f9a62ca5430ae
Gerrit-Change-Number: 12351
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Stefan Sperling <[email protected]>
Gerrit-Reviewer: Vadim Yanitskiy <[email protected]>

Reply via email to