提交 d8f544c3 编写于 作者: I 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: NIlya Dryomov <idryomov@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册