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

@@ -8288,11 +8288,10 @@
         }
 
         return (nvl);
 
 out:
-        if (nvl)
                 nvlist_free(nvl);
 
         if (dev_name)
                 free(dev_name);
 

@@ -8362,11 +8361,10 @@
 
                 if (tmp->class != NULL)
                         free(tmp->class);
                 if (tmp->subclass != NULL)
                         free(tmp->subclass);
-                if (tmp->nvl != NULL)
                         nvlist_free(tmp->nvl);
                 syseventq_back = syseventq_back->next;
                 if (syseventq_back == NULL)
                         syseventq_front = NULL;
                 free(tmp);