libceph: simplify ceph_monc_handle_map()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 Feb 2020 15:37:55 +0000 (16:37 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:41 +0000 (12:42 +0200)
commit4d8b8fb4940a46f8d64bf1f9d116e1d2ae32b01c
treea3724b3b6ad42300c0780b00b941ac01d6aa4b39
parent8ccf7fcce191c11a2d85ef58ad1a82dd6c7e2f7c
libceph: simplify ceph_monc_handle_map()

ceph_monc_handle_map() confuses static checkers which report a
false use-after-free on monc->monmap, missing that monc->monmap and
client->monc.monmap is the same pointer.

Use monc->monmap consistently and get rid of "old", which is redundant.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/mon_client.c