summaryrefslogtreecommitdiff
path: root/net/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2019-10-14 17:25:32 +0300
committerIlya Dryomov <idryomov@gmail.com>2019-11-25 13:44:02 +0300
commitd8f544c30ba0ec7b3e5d0dd2c4258181b2adb8a0 (patch)
treecfb34ec200bec136b78614ea05741e24d3de09c0 /net/ceph
parent219d54332a09e8d8741c1e1982f5eae56099de85 (diff)
downloadlinux-d8f544c30ba0ec7b3e5d0dd2c4258181b2adb8a0.tar.xz
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>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/mon_client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c
index 7256c402ebaa..9d9e4e4ea600 100644
--- a/net/ceph/mon_client.c
+++ b/net/ceph/mon_client.c
@@ -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);