diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-01-12 14:43:33 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-03 09:55:26 +0100 |
commit | 507fa17a6c46c111f6b0d2bc483c1b3563fd16c5 (patch) | |
tree | bd2719cebf081b89e686ad2623a38d1cfc4316da /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8071b210aeb96ff047fcf55fe4fa1f7e07012e90 (diff) |
tools/power/x86/intel-speed-select: Remove wrong check in set_isst_id()
struct isst_id *id is a pointer, comparing it with less than zero is wrong.
The check is there to make sure the id->pkg and id->die is set to -1, when
it is illegal or unavailable. Here comparing with MAX_PACKAGE_COUNT and
MAX_DIE_PER_PACKAGE is sufficient.
Hence remove the wrong check.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
[srinivas.pandruvada@linux.intel.com: Subject and changelog edits]
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions