Author: eadler
Date: Wed Dec  5 13:56:43 2012
New Revision: 243894
URL: http://svnweb.freebsd.org/changeset/base/243894

Log:
  Remove useless check for NULL prior to free.
  
  Approved by:  cperciva
  MFC after:    2 weeks

Modified:
  head/usr.sbin/pw/bitmap.c
  head/usr.sbin/pw/pw_group.c

Modified: head/usr.sbin/pw/bitmap.c
==============================================================================
--- head/usr.sbin/pw/bitmap.c   Wed Dec  5 13:56:39 2012        (r243893)
+++ head/usr.sbin/pw/bitmap.c   Wed Dec  5 13:56:43 2012        (r243894)
@@ -50,8 +50,7 @@ bm_alloc(int size)
 void
 bm_dealloc(struct bitmap * bm)
 {
-       if (bm->map)
-               free(bm->map);
+       free(bm->map);
 }
 
 static void

Modified: head/usr.sbin/pw/pw_group.c
==============================================================================
--- head/usr.sbin/pw/pw_group.c Wed Dec  5 13:56:39 2012        (r243893)
+++ head/usr.sbin/pw/pw_group.c Wed Dec  5 13:56:43 2012        (r243894)
@@ -274,8 +274,7 @@ pw_group(struct userconf * cnf, int mode
 
        pw_log(cnf, mode, W_GROUP, "%s(%ld)", grp->gr_name, (long) grp->gr_gid);
 
-       if (members)
-               free(members);
+       free(members);
 
        return EXIT_SUCCESS;
 }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to