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: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
219d54332a
commit
d8f544c30b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue