git: 6729e8a40bd9 - main - libpmc: remove tautological assert

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Thu, 23 May 2024 16:27:56 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=6729e8a40bd9b15c2790bc96c58817493de4f6f0

commit 6729e8a40bd9b15c2790bc96c58817493de4f6f0
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-05-23 16:26:24 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-05-23 16:27:37 +0000

    libpmc: remove tautological assert
    
    gcc13 whines about this assert than an unsigned integer is >= 0.
    
    Reviewed by:    luporl
    Fixes:          b48a2770d48b9 powerpc64: add Power8 and Power9 PMCs
    Differential Revision:  https://reviews.freebsd.org/D45232
---
 lib/libpmc/libpmc_pmu_util.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/libpmc/libpmc_pmu_util.c b/lib/libpmc/libpmc_pmu_util.c
index fa2e76e8d026..74a93ae963d7 100644
--- a/lib/libpmc/libpmc_pmu_util.c
+++ b/lib/libpmc/libpmc_pmu_util.c
@@ -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;