[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
@@ -39,8 +39,7 @@ static inline struct udf_sb_info *UDF_SB(struct super_block *sb)
|
||||
{\
|
||||
if (UDF_SB(X))\
|
||||
{\
|
||||
if (UDF_SB_PARTMAPS(X))\
|
||||
kfree(UDF_SB_PARTMAPS(X));\
|
||||
kfree(UDF_SB_PARTMAPS(X));\
|
||||
UDF_SB_PARTMAPS(X) = NULL;\
|
||||
}\
|
||||
}
|
||||
|
Reference in New Issue
Block a user