@@ -701,10 +701,6 @@ struct ksock_conn *
KSOCK_MSG_NOOP,
tx->tx_nob, tx->tx_niov, tx->tx_nkiov);
- /*
- * FIXME: SOCK_WMEM_QUEUED and SOCK_ERROR could block in __DARWIN8__
- * but they're used inside spinlocks a lot.
- */
bufnob = conn->ksnc_sock->sk->sk_wmem_queued;
spin_lock_bh(&sched->kss_lock);
@@ -2203,10 +2199,6 @@ void ksocknal_write_callback(struct ksock_conn *conn)
/* Don't need the {get,put}connsock dance to deref ksnc_sock */
LASSERT(!conn->ksnc_closing);
- /*
- * SOCK_ERROR will reset error code of socket in
- * some platform (like Darwin8.x)
- */
error = conn->ksnc_sock->sk->sk_err;
if (error) {
ksocknal_conn_addref(conn);