commit | e96a650a8174e20112b400e72e0b2429aa66de20 | [log] [tgz] |
---|---|---|
author | SF Markus Elfring <elfring@users.sourceforge.net> | Sun Nov 02 15:20:59 2014 +0100 |
committer | Ilya Dryomov <idryomov@redhat.com> | Wed Dec 17 20:09:50 2014 +0300 |
tree | 44fa588afe9ee1b9504016e012c3dcffb184b87b | |
parent | 70db4f3629b3476cf506be869ef9d15688d2d44a [diff] |
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>