[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:
committed by
Linus Torvalds
parent
6044ec8882
commit
f99d49adf5
@@ -112,8 +112,7 @@ static struct nlm_lockowner *nlm_find_lockowner(struct nlm_host *host, fl_owner_
|
||||
}
|
||||
}
|
||||
spin_unlock(&host->h_lock);
|
||||
if (new != NULL)
|
||||
kfree(new);
|
||||
kfree(new);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user