]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: delete unnecessary checks before three function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 7 Apr 2015 23:43:51 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:51 +0000 (09:43 +1000)
commitfd6ac168d727249ec1febdeaf9ecab3b49759f49
tree07f718a43f7c0bba486e291ba0a5005ff6605755
parentcebd062c748acb6ef657fecee9900b5625db9fb6
ocfs2: delete unnecessary checks before three function calls

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 <elfring@users.sourceforge.net>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/alloc.c
fs/ocfs2/slot_map.c
fs/ocfs2/stack_user.c