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
This commit is contained in:
André Goddard Rosa 2010-01-30 22:45:07 -02:00 committed by Jean-Baptiste Queru
parent d791da7943
commit 051ea9bc07
1 changed files with 1 additions and 3 deletions

View File

@ -205,8 +205,6 @@ __fremovelock(FILE* fp)
lock->file = NULL;
}
lock_table_unlock(t);
if (lock != NULL)
free(lock);
free(lock);
}
}