Commit d8f544c3 authored by Ilya Dryomov's avatar Ilya Dryomov

libceph: drop unnecessary check from dispatch() in mon_client.c

con->private is set in ceph_con_init() and is never cleared.
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 219d5433
......@@ -1233,9 +1233,6 @@ static void dispatch(struct ceph_connection *con, struct ceph_msg *msg)
struct ceph_mon_client *monc = con->private;
int type = le16_to_cpu(msg->hdr.type);
if (!monc)
return;
switch (type) {
case CEPH_MSG_AUTH_REPLY:
handle_auth_reply(monc, msg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment