Skip to content
Commit e96a650a authored by SF Markus Elfring's avatar SF Markus Elfring Committed by Ilya Dryomov
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
[idryomov@redhat.com: squashed rbd.c hunk, changelog]
Signed-off-by: default avatarIlya Dryomov <idryomov@redhat.com>
parent 70db4f36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment