summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorAnas Khan <anxkhn28@gmail.com>2026-07-03 01:15:47 +0530
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-07-21 22:28:11 +0200
commit39a4e68035ba6a11f94105056fc3906df1a5b3ea (patch)
tree0a73b0ad88db4176beed999beb901565f005f5ac /tools/perf/scripts/python/bin/stackcollapse-record
parent741a9b09775517c76a5029c58a03725b414d7e20 (diff)
power: supply: bq256xx: drop always-true inner condition
In bq256xx_array_parse() the inner "if (val < array[i])" repeats the second half of the enclosing "if (val > array[i - 1] && val < array[i])", so it is always true and the "else return i" arm is dead code. The function performs a round-down table lookup, so returning i - 1 for a value that falls strictly between two entries is the intended result. Collapse the redundant branch into a single "return i - 1;"; no functional change. Signed-off-by: Anas Khan <anxkhn28@gmail.com> Link: https://patch.msgid.link/20260702194547.65209-1-anxkhn28@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions