]> err.no Git - util-linux/commit
remove useless if-before-free tests.
authorJim Meyering <jim@meyering.net>
Wed, 12 Mar 2008 10:42:16 +0000 (11:42 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Mar 2008 11:00:39 +0000 (12:00 +0100)
commit71c445db69d865329c38ab95328780205ada751b
tree1b6659b156864d2dc2b5848dff84213d5af34bf6
parent1e8d11c459ae93a4d8d7976a8530ae5198206a26
remove useless if-before-free tests.

E.g., in this example, the "if (p)" test is useless.

  if (p)
    free (p);

I've been removing such tests systematically.
Here's where I proposed it to the git folks, along with justification
for why it's ok to perform this transformation, these days (no one
uses SunOS4 anymore):

    http://thread.gmane.org/gmane.comp.version-control.git/74187

Signed-off-by: Jim Meyering <meyering@redhat.com>
login-utils/setpwnam.c
login-utils/simpleinit.c
mount/mount_mntent.c
mount/realpath.c
partx/crc32.c
partx/gpt.c