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
ifnet: Refactor out the detaching of address family dependent data to dedicated function zlei on Fri, Mar 21, 10:28 AM. Authored by
Details
Diff Detail
Event TimelineComment 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. |