[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
|
@ -2738,10 +2738,8 @@ static int devfsd_close(struct inode *inode, struct file *file)
|
|||
entry = fs_info->devfsd_first_event;
|
||||
fs_info->devfsd_first_event = NULL;
|
||||
fs_info->devfsd_last_event = NULL;
|
||||
if (fs_info->devfsd_info) {
|
||||
kfree(fs_info->devfsd_info);
|
||||
fs_info->devfsd_info = NULL;
|
||||
}
|
||||
kfree(fs_info->devfsd_info);
|
||||
fs_info->devfsd_info = NULL;
|
||||
spin_unlock(&fs_info->devfsd_buffer_lock);
|
||||
fs_info->devfsd_pgrp = 0;
|
||||
fs_info->devfsd_task = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue