Re: [PATCH][next] perf: arm-cmn: fix less than zero check on unsigned dtc->irq

2020-10-05 Thread Will Deacon
On Fri, Oct 02, 2020 at 04:48:00PM +0100, Colin King wrote: > From: Colin Ian King > > Currently the failure check on dtc->irq is always false because > dtc->irq is an unsigned int. Fix this by using a temporary signed > int for the less than zero error check. > > Addresses-Coverity: ("Unsigned

[PATCH][next] perf: arm-cmn: fix less than zero check on unsigned dtc->irq

2020-10-02 Thread Colin King
From: Colin Ian King Currently the failure check on dtc->irq is always false because dtc->irq is an unsigned int. Fix this by using a temporary signed int for the less than zero error check. Addresses-Coverity: ("Unsigned compared against 0") Fixes: 0ba64770a2f2 ("perf: Add Arm CMN-600 PMU drive