summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@kernel.org>2025-03-20 14:35:21 +0300
committerAndi Shyti <andi.shyti@kernel.org>2025-03-22 15:11:52 +0300
commit088b1ca970ba6cac141f684b7592ce56bd25e7ea (patch)
tree601ad7ade227c079c10e7917437b7326a0ee8732 /tools/perf/scripts/python/task-analyzer.py
parent5ea558473fa31f4eeb5c76d58277a7ab68fd501d (diff)
downloadlinux-088b1ca970ba6cac141f684b7592ce56bd25e7ea.tar.xz
i2c: k1: Initialize variable before use
Commit 95a8ca229032 ("i2c: spacemit: add support for SpacemiT K1 SoC") introduced a check in the probe function to warn the user if the DTS has incorrect frequency settings. In such cases, the driver falls back to default values. However, the return value of of_property_read_u32() was not stored, making the check ineffective. Fix this by storing the return value in 'ret' and evaluating it properly. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202503200928.eBWfwnHG-lkp@intel.com/ Cc: Troy Mitchell <troymitchell988@gmail.com> Link: https://lore.kernel.org/r/20250320113521.3966762-1-andi.shyti@kernel.org Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions