mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
libpmc: remove tautological assert
gcc13 whines about this assert than an unsigned integer is >= 0.
Reviewed by: luporl
Fixes: b48a2770d4
powerpc64: add Power8 and Power9 PMCs
Differential Revision: https://reviews.freebsd.org/D45232
This commit is contained in:
parent
49086aa35d
commit
6729e8a40b
|
@ -622,7 +622,6 @@ pmc_pmu_pmcallocate_md(const char *event_name, struct pmc_op_pmcallocate *pm)
|
|||
if (pmu_parse_event(&ped, pe->event))
|
||||
return (ENOENT);
|
||||
|
||||
assert(ped.ped_event >= 0);
|
||||
pm->pm_ev = idx;
|
||||
pm->pm_md.pm_event = ped.ped_event;
|
||||
pm->pm_class = PMC_CLASS_POWER8;
|
||||
|
|
Loading…
Reference in a new issue