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

@@ -260,9 +260,8 @@
         (void) nvlist_add_string(nvl, MCINTEL_NVLIST_MEM, inhm_mc_name());
         (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NMEM, 1);
         (void) nvlist_add_uint8(nvl, MCINTEL_NVLIST_NRANKS, 4);
         inhm_dimmlist(chip, nvl);
 
-        if (inhm_mc_nvl[chip])
                 nvlist_free(inhm_mc_nvl[chip]);
         inhm_mc_nvl[chip] = nvl;
 }