diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-05-27 06:04:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-05-27 06:04:07 +0000 |
commit | 62605cbfcb3d2f118c9f64ce049220b82928e6d4 (patch) | |
tree | 0af0f74a35664879e6a6e455122e3eec1ba24d0d /misc/fstab.c | |
parent | 4b2c85c0b9a04b0ca4e4d031a5b92b2160f17bc3 (diff) | |
download | glibc-62605cbfcb3d2f118c9f64ce049220b82928e6d4.tar.gz glibc-62605cbfcb3d2f118c9f64ce049220b82928e6d4.tar.xz glibc-62605cbfcb3d2f118c9f64ce049220b82928e6d4.zip |
Remove useless more "if" tests before "free".
* include/inline-hashtab.h (htab_delete): Likewise. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. * locale/programs/ld-collate.c (collate_read): Likewise. * misc/fstab.c (libc_freeres_fn): Likewise. * posix/glob.c (globfree): Likewise.
Diffstat (limited to 'misc/fstab.c')
-rw-r--r-- | misc/fstab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/fstab.c b/misc/fstab.c index b434203a86..ab5581e9b7 100644 --- a/misc/fstab.c +++ b/misc/fstab.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1997, 1998, 2000, 2008 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -185,6 +186,5 @@ libc_freeres_fn (fstab_free) char *buffer; buffer = fstab_state.fs_buffer; - if (buffer != NULL) - free ((void *) buffer); + free ((void *) buffer); } |