summaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2019-10-14 16:25:32 +0200
committerIlya Dryomov <idryomov@gmail.com>2019-11-25 11:44:02 +0100
commitd8f544c30ba0ec7b3e5d0dd2c4258181b2adb8a0 (patch)
treecfb34ec200bec136b78614ea05741e24d3de09c0 /net/ceph
parent219d54332a09e8d8741c1e1982f5eae56099de85 (diff)
downloadlinux-d8f544c30ba0ec7b3e5d0dd2c4258181b2adb8a0.tar.bz2
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);