Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7353dd5 authored by Sage Weil's avatar Sage Weil
Browse files

libceph: drop unnecessary CLOSED check in socket state change callback



If we are CLOSED, the socket is closed and we won't get these.

Signed-off-by: default avatarSage Weil <sage@inktank.com>
parent ee76e073
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -296,9 +296,6 @@ static void ceph_sock_state_change(struct sock *sk)
	dout("%s %p state = %lu sk_state = %u\n", __func__,
	     con, con->state, sk->sk_state);

	if (test_bit(CLOSED, &con->state))
		return;

	switch (sk->sk_state) {
	case TCP_CLOSE:
		dout("%s TCP_CLOSE\n", __func__);