Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmd_agent/i386/fmd_agent_i386.c
          +++ new/usr/src/lib/fm/libfmd_agent/i386/fmd_agent_i386.c
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  #include <sys/types.h>
  30   30  #include <libnvpair.h>
  31   31  #include <sys/fcntl.h>
  32   32  #include <sys/devfm.h>
  33   33  #include <fmd_agent_impl.h>
  34   34  
  35   35  static int
  36   36  cleanup_set_errno(fmd_agent_hdl_t *hdl, nvlist_t *innvl, nvlist_t *outnvl,
  37   37      int err)
  38   38  {
  39      -        if (innvl != NULL)
  40      -                nvlist_free(innvl);
  41      -        if (outnvl != NULL)
  42      -                nvlist_free(outnvl);
       39 +        nvlist_free(innvl);
       40 +        nvlist_free(outnvl);
  43   41          return (fmd_agent_seterrno(hdl, err));
  44   42  }
  45   43  
  46   44  static int
  47   45  fmd_agent_physcpu_info_v1(fmd_agent_hdl_t *hdl, nvlist_t ***cpusp,
  48   46      uint_t *ncpup)
  49   47  {
  50   48          int err;
  51   49          nvlist_t *nvl, **nvl_array, **cpus;
  52   50          uint_t i, n;
↓ open down ↓ 125 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX