Print this page
patch tsoome-feedback

@@ -22,12 +22,10 @@
 /*
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <libxml/parser.h>
 #include <fm/libtopo.h>
 #include <topo_alloc.h>
 #include <topo_error.h>
 #include <topo_parse.h>

@@ -193,11 +191,10 @@
         int n;
         if (p == NULL)
                 return;
         if (p->tpad_pgs != NULL) {
                 for (n = 0; n < p->tpad_pgcnt; n++)
-                        if (p->tpad_pgs[n] != NULL)
                                 nvlist_free(p->tpad_pgs[n]);
                 topo_mod_free(mp,
                     p->tpad_pgs, p->tpad_pgcnt * sizeof (nvlist_t *));
         }
         tf_rdata_free(mp, p->tpad_child);