[PATCH] Remove redundant NULL checks before [kv]free - in fs/
Remove redundant NULL checks before kfree for fs/ Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Mark Fasheh <mark.fasheh@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
59e0e0ace7
commit
4ad98457aa
@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bail:
|
bail:
|
||||||
if (request)
|
kfree(request);
|
||||||
kfree(request);
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bail:
|
bail:
|
||||||
if (request)
|
kfree(request);
|
||||||
kfree(request);
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user