[PATCH] kfree cleanup: fs
This is the fs/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in fs/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
6044ec8882
commit
f99d49adf5
39 changed files with 137 additions and 245 deletions
|
|
@ -52,8 +52,7 @@ nfs_put_unlinkdata(struct nfs_unlinkdata *data)
|
|||
{
|
||||
if (--data->count == 0) {
|
||||
nfs_detach_unlinkdata(data);
|
||||
if (data->name.name != NULL)
|
||||
kfree(data->name.name);
|
||||
kfree(data->name.name);
|
||||
kfree(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue