]> git.baikalelectronics.ru Git - kernel.git/commit
ceph, rbd: delete unnecessary checks before two function calls
authorSF Markus Elfring <elfring@users.sourceforge.net>
Sun, 2 Nov 2014 14:20:59 +0000 (15:20 +0100)
committerIlya Dryomov <idryomov@redhat.com>
Wed, 17 Dec 2014 17:09:50 +0000 (20:09 +0300)
commitf9c1faf15ab27590f2a90750d051183900a3e1a7
tree44fa588afe9ee1b9504016e012c3dcffb184b87b
parent176ff541749c54dc13e7a80f0a7c18f861a30d97
ceph, rbd: delete unnecessary checks before two function calls

The functions ceph_put_snap_context() and iput() test whether their
argument is NULL and then return immediately. Thus the test around the
call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[idryomov@redhat.com: squashed rbd.c hunk, changelog]
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
drivers/block/rbd.c
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/snap.c