Print this page
patch tsoome-feedback

@@ -22,12 +22,10 @@
 /*
  * Copyright 2001-2002 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>

@@ -223,11 +221,10 @@
          * Talk to the kernel.
          */
 
         return (dispatch(&nvlp, NULL, NULL));
 failed:
-        if (nvlp != NULL)
                 nvlist_free(nvlp);
         errno = rc;
         return (-1);
 }
 #undef  __FN__

@@ -334,11 +331,10 @@
          * Talk to the kernel.
          */
 
         return (dispatch(&nvlp, fn, arg));
 failed:
-        if (nvlp != NULL)
                 nvlist_free(nvlp);
         errno = rc;
         return (-1);
 }
 #undef  __FN__

@@ -387,11 +383,10 @@
          * Talk to the kernel.
          */
 
         return (dispatch(&nvlp, string_callback, (void *)modnamep));
 failed:
-        if (nvlp != NULL)
                 nvlist_free(nvlp);
         errno = rc;
         return (-1);
 }
 #undef  __FN__

@@ -444,11 +439,10 @@
                 *neltp = ad.nelt;
         }
 
         return (rc);
 failed:
-        if (nvlp != NULL)
                 nvlist_free(nvlp);
         errno = rc;
         return (-1);
 }
 #undef  __FN__

@@ -508,11 +502,10 @@
                 *neltp = ad.nelt;
         }
 
         return (rc);
 failed:
-        if (nvlp != NULL)
                 nvlist_free(nvlp);
         errno = rc;
         return (-1);
 }
 #undef  __FN__