Page MenuHomeFreeBSD

Deduplicate code between if_delgroup() and if_delgroups().
ClosedPublic

Authored by markj on Dec 20 2019, 5:15 PM.
Tags
None
Referenced Files
F105722739: D22892.diff
Thu, Dec 19, 5:32 PM
Unknown Object (File)
Oct 24 2024, 3:04 PM
Unknown Object (File)
Sep 27 2024, 3:51 AM
Unknown Object (File)
Sep 17 2024, 11:53 PM
Unknown Object (File)
Sep 7 2024, 5:48 AM
Unknown Object (File)
Sep 4 2024, 8:07 PM
Unknown Object (File)
Aug 24 2024, 5:42 PM
Unknown Object (File)
Aug 24 2024, 5:41 PM
Subscribers

Details

Summary

Fix some style in if_addgroup(). No functional change intended.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28268
Build 26384: arc lint + arc unit

Event Timeline

hselasky added inline comments.
sys/net/if.c
1510

Maybe call this function _if_delgroup_wlocked() because it is called locked?

This revision is now accepted and ready to land.Dec 20 2019, 5:22 PM

Give _if_delgroup() a slightly more descriptive name.

This revision now requires review to proceed.Dec 20 2019, 5:28 PM
hselasky added inline comments.
sys/net/if.c
1581–1582

Technically this is the same like:
while ((ifgl = CK_STAILQ_FIRST(&ifp->if_groups)) != NULL) {

This revision is now accepted and ready to land.Dec 20 2019, 5:31 PM

Simplify the loop header in if_delgroups().

This revision now requires review to proceed.Dec 20 2019, 5:41 PM
This revision is now accepted and ready to land.Dec 20 2019, 5:42 PM