SImplify the call to tcp_drop(), since the handling of soft error

is also done in tcp_drop(). No functional change.

Sponsored by:	Netflix, Inc.
This commit is contained in:
Michael Tuexen 2018-05-02 20:04:31 +00:00
parent 5ebc699ab2
commit 4c6a10903f

View File

@ -662,8 +662,7 @@ tcp_timer_rexmt(void * xtp)
tcp_inpinfo_lock_del(inp, tp);
goto out;
}
tp = tcp_drop(tp, tp->t_softerror ?
tp->t_softerror : ETIMEDOUT);
tp = tcp_drop(tp, ETIMEDOUT);
tcp_inpinfo_lock_del(inp, tp);
goto out;
}