Page MenuHomeFreeBSD

tcp: small cleanup
ClosedPublic

Authored by tuexen on Sep 30 2024, 6:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 1, 6:08 PM
Unknown Object (File)
Wed, Jan 22, 4:48 AM
Unknown Object (File)
Fri, Jan 17, 2:09 PM
Unknown Object (File)
Dec 23 2024, 6:17 AM
Unknown Object (File)
Dec 9 2024, 1:25 AM
Unknown Object (File)
Nov 29 2024, 8:43 PM
Unknown Object (File)
Nov 22 2024, 5:30 PM
Unknown Object (File)
Nov 10 2024, 1:42 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

glebius added inline comments.
sys/netinet/tcp_syncache.c
1588

No objection on this change, but I personally preferred the original style.

tuexen added inline comments.
sys/netinet/tcp_syncache.c
1588

Me too. But then the line is too long. The alternative would be:

if ((sc = uma_zalloc(V_tcp_syncache.zone,
    M_NOWAIT | M_ZERO)) == NULL) {

I think the way proposed is simpler to read.

This revision is now accepted and ready to land.Oct 1 2024, 7:51 AM

Looks good to me. Thanks for removing the goto label skip_alloc that improves reading.

This revision was automatically updated to reflect the committed changes.