ceph: remove unused variables in ceph_mdsmap_decode()
authorJia Yang <jiayang5@huawei.com>
Thu, 23 Jul 2020 02:25:52 +0000 (10:25 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:05:27 +0000 (11:05 +0200)
commit8e298deb8d8c449d87acceab8c8bfef71b67b08d
treee7bcc7e632d1400b15bbea85c4e57c046ea0f2b1
parentf1f565a26976612121f97464f9245307422d0ce8
ceph: remove unused variables in ceph_mdsmap_decode()

Fix build warnings:

  fs/ceph/mdsmap.c: In function ‘ceph_mdsmap_decode’:
  fs/ceph/mdsmap.c:192:7: warning: variable ‘info_cv’ set but not used [-Wunused-but-set-variable]
  fs/ceph/mdsmap.c:177:7: warning: variable ‘state_seq’ set but not used [-Wunused-but-set-variable]
  fs/ceph/mdsmap.c:123:15: warning: variable ‘mdsmap_cv’ set but not used [-Wunused-but-set-variable]

Note that p is increased in ceph_decode_*.

Signed-off-by: Jia Yang <jiayang5@huawei.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mdsmap.c