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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
          +++ new/usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
↓ open down ↓ 680 lines elided ↑ open up ↑
 681  681                  if (pfmri)
 682  682                          (void) topo_node_fru_set(chnode, pfmri, 0, &err);
 683  683  
 684  684                  nvlist_free(fmri);
 685  685  
 686  686                  (void) topo_pgroup_create(chnode, &chan_pgroup, &err);
 687  687  
 688  688                  (void) topo_prop_set_string(chnode, PGNAME(CHAN), "channel",
 689  689                      TOPO_PROP_IMMUTABLE, i == 0 ? "A" : "B", &err);
 690  690          }
 691      -        if (pfmri)
 692      -                nvlist_free(pfmri);
      691 +        nvlist_free(pfmri);
 693  692  
 694  693          return (nerr == 0 ? 0 : -1);
 695  694  }
 696  695  
 697  696  static int
 698  697  amd_htconfig(topo_mod_t *mod, tnode_t *cnode, nvlist_t *htnvl)
 699  698  {
 700  699          nvpair_t *nvp;
 701  700          int nerr = 0;
 702  701  
↓ open down ↓ 148 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX