Print this page
6139 help gcc figure out variable initialization

@@ -823,19 +823,17 @@
                                 break;
                         }
                         ptr = ptr->portal_next;
                         i++;
                 }
-        }
 
-        if ((ret == 0) && portalArray) {
+                if (ret == 0) {
                 ret = nvlist_add_string_array(*nvl, "portalList",
                     portalArray, i);
         }
 
 
-        if (portalArray) {
                 while (--i >= 0) {
                         if (portalArray[i]) {
                                 iscsit_free(portalArray[i],
                                     strlen(portalArray[i] + 1));
                         }