diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2010-01-30 22:45:07 -0200 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-05-10 15:42:47 -0700 |
commit | 051ea9bc07809a2638e5f022ae10330e23530f64 (patch) | |
tree | e4b9e8ffccf81cc3edfb2d2fd42472a9eee25550 /libc/stdio | |
parent | d791da79432064bc954fedf8d4e4394aaafefe75 (diff) | |
download | bionic-051ea9bc07809a2638e5f022ae10330e23530f64.zip bionic-051ea9bc07809a2638e5f022ae10330e23530f64.tar.gz bionic-051ea9bc07809a2638e5f022ae10330e23530f64.tar.bz2 |
stdio: simplify __fremovelock()
... by removing extraneous NULL check, as free() already does it.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: I0445f35c7ad0a049a0e4aee1fbe002ed2f13b94b
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/flockfile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/stdio/flockfile.c b/libc/stdio/flockfile.c index a81879e..bfb081c 100644 --- a/libc/stdio/flockfile.c +++ b/libc/stdio/flockfile.c @@ -205,8 +205,6 @@ __fremovelock(FILE* fp) lock->file = NULL; } lock_table_unlock(t); - - if (lock != NULL) - free(lock); + free(lock); } } |