Print this page
6659 nvlist_free(NULL) is a no-op

@@ -339,11 +339,10 @@
 
         *ret_nvl = nvl;
         return (DDI_SUCCESS);
 
 err:
-        if (sub_nvl)
                 nvlist_free(sub_nvl);
         nvlist_free(nvl);
         *ret_nvl = NULL;
         return (DDI_FAILURE);
 }