This is a copy of a copy of a pre-C89 pattern.
We don't need the casts, so remove the helper macros as well.
While here, remove a function that is now recognized as unused.
Sponsored by: The FreeBSD Foundation
Differential D44520
hvsock: remove useless casts, checks & functions freebsd_igalic.co on Mar 26 2024, 10:32 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Looks like this socket has special handling of so_pcb. While it is allocated in pr_attach, like all others do, it has two paths for deallocation - for listening socket it is normal pr_detach, but it also may be deallocated at device detach method. I'd suggest to split this changeset into 3 separate parts, which actually are unrelated:
Comment Actions I can do these two by myself, but I will need @whu's input on this:
|