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

@@ -795,11 +795,10 @@
                 rv = (*rcm->notify_capacity_change)(hd, "SUNW_cpu",
                     flags & ~RCM_FORCE, nvl, rinfo);
         }
 
 done:
-        if (nvl)
                 nvlist_free(nvl);
         s_free(oldcpuids);
         s_free(newcpuids);
         return (rv);
 }