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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/sunmdi.c
          +++ new/usr/src/uts/common/os/sunmdi.c
↓ open down ↓ 8021 lines elided ↑ open up ↑
8022 8022          free_string_array(phcis, phci_count);
8023 8023  
8024 8024          if (err == 0 &&
8025 8025              (err = vhcache_to_caddrmapnvl(vhcache, nvl)) == 0) {
8026 8026                  rw_exit(&vhcache->vhcache_lock);
8027 8027                  return (nvl);
8028 8028          }
8029 8029  
8030 8030          rw_exit(&vhcache->vhcache_lock);
8031 8031  out:
8032      -        if (nvl)
8033      -                nvlist_free(nvl);
     8032 +        nvlist_free(nvl);
8034 8033          return (NULL);
8035 8034  }
8036 8035  
8037 8036  /*
8038 8037   * Lookup vhcache phci structure for the specified phci path.
8039 8038   */
8040 8039  static mdi_vhcache_phci_t *
8041 8040  lookup_vhcache_phci_by_name(mdi_vhci_cache_t *vhcache, char *phci_path)
8042 8041  {
8043 8042          mdi_vhcache_phci_t *cphci;
↓ open down ↓ 1702 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX