Page MenuHomeFreeBSD

hwpmc: split out PMC_OP_PMCRELEASE
ClosedPublic

Authored by mhorne on May 26 2023, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 13, 7:20 AM
Unknown Object (File)
Wed, May 29, 9:09 PM
Unknown Object (File)
May 8 2024, 6:18 AM
Unknown Object (File)
Apr 30 2024, 7:15 AM
Unknown Object (File)
Apr 24 2024, 2:24 AM
Unknown Object (File)
Apr 16 2024, 7:49 AM
Unknown Object (File)
Feb 11 2024, 2:30 PM
Unknown Object (File)
Jan 23 2024, 3:24 PM
Subscribers

Diff Detail

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

Event Timeline

jkoshy requested changes to this revision.May 31 2023, 6:55 AM
jkoshy added inline comments.
sys/dev/hwpmc/hwpmc_mod.c
3647

How about returning early in case of an error? Doing so would be consistent with the way errors
are handled in other parts of the code.

error = pmc_find_pmc(...)
if (error != 0)
   return (error);
This revision now requires changes to proceed.May 31 2023, 6:55 AM

Adjust error handling to return directly.

mhorne added inline comments.
sys/dev/hwpmc/hwpmc_mod.c
3647

Sure thing. Not sure why I structured this one this way...

This revision is now accepted and ready to land.Jun 2 2023, 8:47 PM
This revision was automatically updated to reflect the committed changes.
mhorne marked an inline comment as done.