ocfs2: remove kfree() redundant null checks
smatch analysis indicates a number of redundant NULL checks before calling kfree(), eg: fs/ocfs2/alloc.c:6138 ocfs2_begin_truncate_log_recovery() info: redundant null check on *tl_copy calling kfree() fs/ocfs2/alloc.c:6755 ocfs2_zero_range_for_truncate() info: redundant null check on pages calling kfree() etc.... [akpm@linux-foundation.org: revert dubious change in ocfs2_begin_truncate_log_recovery()] Signed-off-by:Tim Gardner <tim.gardner@canonical.com> Cc: Mark Fasheh <mfasheh@suse.com> Acked-by:
Joel Becker <jlbec@evilplan.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/ocfs2/alloc.c 1 addition, 2 deletionsfs/ocfs2/alloc.c
- fs/ocfs2/cluster/heartbeat.c 2 additions, 4 deletionsfs/ocfs2/cluster/heartbeat.c
- fs/ocfs2/cluster/tcp.c 2 additions, 4 deletionsfs/ocfs2/cluster/tcp.c
- fs/ocfs2/dlm/dlmdomain.c 1 addition, 3 deletionsfs/ocfs2/dlm/dlmdomain.c
- fs/ocfs2/extent_map.c 1 addition, 2 deletionsfs/ocfs2/extent_map.c
- fs/ocfs2/journal.c 3 additions, 7 deletionsfs/ocfs2/journal.c
- fs/ocfs2/localalloc.c 3 additions, 5 deletionsfs/ocfs2/localalloc.c
- fs/ocfs2/stack_o2cb.c 1 addition, 1 deletionfs/ocfs2/stack_o2cb.c
- fs/ocfs2/super.c 2 additions, 4 deletionsfs/ocfs2/super.c
- fs/ocfs2/sysfile.c 1 addition, 2 deletionsfs/ocfs2/sysfile.c
Loading
Please register or sign in to comment