osaf/services/saf/amf/amfd/su.cc |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


diff --git a/osaf/services/saf/amf/amfd/su.cc b/osaf/services/saf/amf/amfd/su.cc
--- a/osaf/services/saf/amf/amfd/su.cc
+++ b/osaf/services/saf/amf/amfd/su.cc
@@ -55,7 +55,6 @@
        su_on_node = NULL;
        list_of_susi = NULL;
        list_of_comp = NULL;
-       sg_list_su_next = NULL;
        su_type = NULL;
        su_list_su_type_next = NULL; 
        name.length = 0;
@@ -1132,7 +1131,7 @@
        const SaImmAdminOperationParamsT_2 **params)
 {
        AVD_CL_CB *cb = (AVD_CL_CB*) avd_cb;
-       AVD_SU    *su, *su_ptr;
+       AVD_SU    *su;
        AVD_AVND  *node;
 
        TRACE_ENTER2("%llu, '%s', %llu", invocation, su_name->value, op_id);
@@ -1157,7 +1156,7 @@
        }
 
        /* Avoid multiple admin operations on other SUs belonging to the same 
SG. */
-       for (su_ptr = su->sg_of_su->list_of_su; su_ptr != NULL; su_ptr = 
su_ptr->sg_list_su_next) {
+       for (auto const& su_ptr : su->sg_of_su->list_of_su) {
                /* su's sg_fsm_state is checked below, just check other su. */
                if ((su != su_ptr) && (su_ptr->pend_cbk.invocation != 0)) {
                        report_admin_op_error(immoi_handle, invocation, 
SA_AIS_ERR_TRY_AGAIN, NULL,

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to