ceph: remove redundant initialization of variable mds
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Jul 2020 15:22:40 +0000 (16:22 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:05:28 +0000 (11:05 +0200)
The variable mds is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/debugfs.c

index 3030f55..97539b4 100644 (file)
@@ -262,7 +262,7 @@ static int mds_sessions_show(struct seq_file *s, void *ptr)
        struct ceph_mds_client *mdsc = fsc->mdsc;
        struct ceph_auth_client *ac = fsc->client->monc.auth;
        struct ceph_options *opt = fsc->client->options;
-       int mds = -1;
+       int mds;
 
        mutex_lock(&mdsc->mutex);