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:
parent
d791da7943
commit
051ea9bc07
|
@ -205,8 +205,6 @@ __fremovelock(FILE* fp)
|
|||
lock->file = NULL;
|
||||
}
|
||||
lock_table_unlock(t);
|
||||
|
||||
if (lock != NULL)
|
||||
free(lock);
|
||||
free(lock);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue