Tag: fd90d4dfb94a8c0d626c0c85ca7dcfb905f81a65

ocfs2: delete unnecessary checks before three function calls

Author: Markus Elfring <elfring@users.sourceforge.net> kfree(), ocfs2_free_path() and __ocfs2_free_slot_info() test whether their argument is NULL and then return immediately. Thus the test around their calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/ocfs2/alloc.c | 17 …

Continue reading