From: Colin Ian King Date: Thu, 23 Jul 2020 15:22:40 +0000 (+0100) Subject: ceph: remove redundant initialization of variable mds X-Git-Tag: v5.9-rc1~45^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c81ef286c42c5bfc0d0a60219b781791d4bd55c;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 3030f55850856..97539b497e4c4 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);