diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-23 16:22:40 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-08-03 11:05:28 +0200 |
commit | 2c81ef286c42c5bfc0d0a60219b781791d4bd55c (patch) | |
tree | b06d25c57a099f5ffe271b18fc68919a2b423d24 /fs/ceph | |
parent | a7caa88f8b72c136f9a401f498471b8a8e35370d (diff) | |
download | linux-2c81ef286c42c5bfc0d0a60219b781791d4bd55c.tar.gz linux-2c81ef286c42c5bfc0d0a60219b781791d4bd55c.tar.bz2 linux-2c81ef286c42c5bfc0d0a60219b781791d4bd55c.zip |
ceph: remove redundant initialization of variable mds
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 3030f5585085..97539b497e4c 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c @@ -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); |