Commit d8f544c3 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);