Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmd_agent/common/fmd_agent.c
          +++ new/usr/src/lib/fm/libfmd_agent/common/fmd_agent.c
↓ open down ↓ 66 lines elided ↑ open up ↑
  67   67  const char *
  68   68  fmd_agent_errmsg(fmd_agent_hdl_t *hdl)
  69   69  {
  70   70          return (fmd_agent_strerr(hdl->agent_errno));
  71   71  }
  72   72  
  73   73  static int
  74   74  cleanup_set_errno(fmd_agent_hdl_t *hdl, nvlist_t *innvl, nvlist_t *outnvl,
  75   75      int err)
  76   76  {
  77      -        if (innvl != NULL)
  78      -                nvlist_free(innvl);
  79      -        if (outnvl != NULL)
  80      -                nvlist_free(outnvl);
       77 +        nvlist_free(innvl);
       78 +        nvlist_free(outnvl);
  81   79          return (fmd_agent_seterrno(hdl, err));
  82   80  }
  83   81  
  84   82  /*
  85   83   * Perform /dev/fm ioctl.  The input and output data are represented by
  86   84   * name-value lists (nvlists).
  87   85   */
  88   86  int
  89   87  fmd_agent_nvl_ioctl(fmd_agent_hdl_t *hdl, int cmd, uint32_t ver,
  90   88      nvlist_t *innvl, nvlist_t **outnvlp)
↓ open down ↓ 249 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX