summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2023-01-06 03:59:51 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-01-10 22:33:26 +0300
commite7fcfe67f9f410736b758969477b17ea285e8e6c (patch)
tree7a6704f62e9f2b88d39518d685f04cf91624f104 /tools/perf/scripts/python/export-to-sqlite.py
parent58374a3970a04ef3bf2df3a3d3d2345be998068f (diff)
downloadlinux-e7fcfe67f9f410736b758969477b17ea285e8e6c.tar.xz
thermal: intel: Fix unsigned comparison with less than zero
The return value from the call to intel_tcc_get_tjmax() is int, which can be a negative error code. However, the return value is being assigned to an u32 variable 'tj_max', so making 'tj_max' an int. Eliminate the following warning: ./drivers/thermal/intel/intel_soc_dts_iosf.c:394:5-11: WARNING: Unsigned expression compared with zero: tj_max < 0 Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3637 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Acked-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions