Skip to content

Commit 2c81ef2

Browse files
Colin Ian Kingidryomov
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent a7caa88 commit 2c81ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int mds_sessions_show(struct seq_file *s, void *ptr)
262262
struct ceph_mds_client *mdsc = fsc->mdsc;
263263
struct ceph_auth_client *ac = fsc->client->monc.auth;
264264
struct ceph_options *opt = fsc->client->options;
265-
int mds = -1;
265+
int mds;
266266

267267
mutex_lock(&mdsc->mutex);
268268

0 commit comments

Comments
 (0)