]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ceph: delete an unnecessary return statement in update_dentry_lease()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 20 Aug 2017 18:08:25 +0000 (20:08 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:51 +0000 (19:56 +0200)
The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c

index 087d9ea3a15324f29375e178f7b99f22cbcd126f..277c7cd7b1abe505483d0980516a0980e0f861bb 100644 (file)
@@ -1067,7 +1067,6 @@ out_unlock:
        spin_unlock(&dentry->d_lock);
        if (old_lease_session)
                ceph_put_mds_session(old_lease_session);
-       return;
 }
 
 /*