diff options
author | Yang Li <[email protected]> | 2023-01-06 09:17:10 +0800 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2023-01-06 11:59:12 -0600 |
commit | d4b2c7484a8edd79c90b9f8acc8a03e5e3235b89 (patch) | |
tree | a8fdd0347752e3dac088f3307c5160e4721669a1 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 33ae3d0955943ac5bacfcb6911cf7cb74822bf8c (diff) |
soc: qcom: dcc: Fix unsigned comparison with less than zero
The return value from the call to kstrtouint_from_user() is int.
However, the return value is being assigned to
an unsigned int variable 'ret', so making 'ret' an int.
Eliminate the following warning:
./drivers/soc/qcom/dcc.c:815:5-8: WARNING: Unsigned expression compared with zero: ret < 0
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3638
Fixes: 4cbe60cf5ad6 ("soc: qcom: dcc: Add driver support for Data Capture and Compare unit(DCC)")
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions