lkml.org 
[lkml]   [2017]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ceph: Delete unused variable in mds_client
Date
Variable 'err' is set but never used, so should be removed.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
---
fs/ceph/mds_client.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index f23c820..7cd4fd9 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3801,7 +3801,6 @@ void ceph_mdsc_handle_fsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg)
u32 num_fs;
u32 mount_fscid = (u32)-1;
u8 struct_v, struct_cv;
- int err = -EINVAL;

ceph_decode_need(&p, end, sizeof(u32), bad);
epoch = ceph_decode_32(&p);
@@ -3852,7 +3851,6 @@ void ceph_mdsc_handle_fsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg)
0, true);
ceph_monc_renew_subs(&fsc->client->monc);
} else {
- err = -ENOENT;
goto err_out;
}
return;
--
2.7.4
\
 
 \ /
  Last update: 2017-10-14 12:01    [W:0.033 / U:4.700 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site