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)
Mon, Oct 13, 5:08 PM
Unknown Object (File)
Mon, Oct 13, 5:08 PM
Unknown Object (File)
Mon, Oct 13, 5:08 PM
Unknown Object (File)
Mon, Oct 13, 3:52 AM
Unknown Object (File)
Sep 24 2025, 10:08 AM
Unknown Object (File)
Sep 20 2025, 7:48 AM
Unknown Object (File)
Sep 13 2025, 1:48 PM
Unknown Object (File)
Sep 4 2025, 8:52 PM
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.