mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6044ec8882
commit
f99d49adf5
39 changed files with 137 additions and 245 deletions
|
|
@ -150,10 +150,8 @@ int autofs_wait(struct autofs_sb_info *sbi, struct qstr *name)
|
|||
if ( sbi->catatonic ) {
|
||||
/* We might have slept, so check again for catatonic mode */
|
||||
wq->status = -ENOENT;
|
||||
if ( wq->name ) {
|
||||
kfree(wq->name);
|
||||
wq->name = NULL;
|
||||
}
|
||||
kfree(wq->name);
|
||||
wq->name = NULL;
|
||||
}
|
||||
|
||||
if ( wq->name ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue