This makes the main logic of if_detach_internal() more clear. It is also easier to read the logic of attaching and detaching address family dependent data.
No functional change intended.
MFC after: 1 week
Differential D49434 Authored by zlei on Fri, Mar 21, 10:28 AM.
Details
Diff Detail
Event TimelineHerald added subscribers: melifaro, ae, imp. · View Herald TranscriptFri, Mar 21, 10:28 AM2025-03-21 10:28:05 (UTC+0) Comment Actions No, I don't agree this makes code more clear. A single time use function just requires the reader to jump more around the file to understand how things work, also keeping in mind what resources are held or not during those calls. So my approval of D49444 is in the scope of the original function, not on top of this revision. This revision now requires changes to proceed.Sat, Mar 22, 6:40 AM2025-03-22 06:40:14 (UTC+0)
Revision Contents
Diff 152492 sys/net/if.c
|