Page MenuHomeFreeBSD

hwpmc: flatten conditional in pmc_process_exit()
ClosedPublic

Authored by mhorne on Jun 13 2023, 5:56 PM.
Tags
None
Referenced Files
F153192344: D40518.id123234.diff
Sun, Apr 19, 5:29 PM
Unknown Object (File)
Thu, Apr 16, 10:40 PM
Unknown Object (File)
Mon, Apr 13, 11:29 PM
Unknown Object (File)
Thu, Apr 2, 5:32 AM
Unknown Object (File)
Mar 19 2026, 3:27 AM
Unknown Object (File)
Mar 18 2026, 11:46 AM
Unknown Object (File)
Mar 18 2026, 11:38 AM
Unknown Object (File)
Mar 4 2026, 4:50 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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.