Page MenuHomeFreeBSD

tcp: remove unused code in tcp_usr_attach
ClosedPublic

Authored by tuexen on Thu, May 30, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 1, 5:14 PM
Unknown Object (File)
Thu, May 30, 7:44 PM

Details

Summary

pr_attach is only called on a socket so with so->so_listen != NULL via sonewconn. However, sonewconn is not called from the TCP code. The listening sockets are handled in tcp_syncache.c without using sonewconn. Therefore, the code removed is never executed.
No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable