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)
Fri, Jul 25, 8:07 AM
Unknown Object (File)
Sun, Jul 20, 11:41 AM
Unknown Object (File)
Fri, Jul 4, 9:30 PM
Unknown Object (File)
Thu, Jul 3, 4:11 PM
Unknown Object (File)
Thu, Jul 3, 10:49 AM
Unknown Object (File)
Jun 24 2025, 4:59 PM
Unknown Object (File)
Jun 24 2025, 4:12 AM
Unknown Object (File)
Jun 18 2025, 8:38 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 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.