diff options
| author | 2026-03-23 09:40:18 +0000 | |
|---|---|---|
| committer | 2026-03-23 14:51:06 +0100 | |
| commit | 945471425a374e15a0d1a85b35913e1acdcd4a99 (patch) | |
| tree | b46cb81c68fc350b7c6f3a96cce385a3caed1650 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | thermal: sysfs: Use str_enabled_disabled() helper in mode_show() (diff) | |
thermal: devfreq_cooling: avoid unnecessary kfree of freq_table
dfc->freq_table is only allocated in the non-EM path via
devfreq_cooling_gen_tables(). In the EM path, it remains NULL.
Avoid calling kfree() unnecessarily when freq_table was never allocated.
This resolves a Smatch warning:
calling kfree() when 'dfc->freq_table' is always NULL.
Signed-off-by: Anas Iqbal <mohd.abd.6602@gmail.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20260323094018.2264-1-mohd.abd.6602@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
