tcp: code clean-up.