Page MenuHomeFreeBSD

hwpmc: flatten conditional in pmc_process_exit()
ClosedPublic

Authored by mhorne on Jun 13 2023, 5:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 13, 2:33 AM
Unknown Object (File)
Fri, Nov 7, 11:23 PM
Unknown Object (File)
Wed, Nov 5, 4:42 AM
Unknown Object (File)
Oct 29 2025, 10:58 AM
Unknown Object (File)
Oct 29 2025, 10:54 AM
Unknown Object (File)
Oct 29 2025, 10:41 AM
Unknown Object (File)
Oct 29 2025, 10:37 AM
Unknown Object (File)
Oct 27 2025, 12:37 AM
Subscribers

Details

Summary

Use a goto to clarify the control flow when there is no process
descriptor. This wins back a level of indentation.

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 52027
Build 48918: arc lint + arc unit

Event Timeline

jkoshy added inline comments.
sys/dev/hwpmc/hwpmc_mod.c
5028

While here: "could be the target"?

This revision is now accepted and ready to land.Jun 14 2023, 9:45 AM
This revision was automatically updated to reflect the committed changes.
mhorne marked an inline comment as done.