aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2024-01-22 12:03:27 +0100
committerGreg Kroah-Hartman <[email protected]>2024-01-27 18:08:53 -0800
commiteb881ebab593fdf8325bb35143e5135dcd7a346b (patch)
tree64441a4acb2fce40b59fb3a878b1474e0fbf4d74 /tools/perf/scripts/python/bin
parentfe4f6beb59a95a051c226e70fafe87b3de9dd0d0 (diff)
use clamp() for counts in csi_?() handlers
The count to process is supposed to be between 1 and vc->vc_cols - vc->state.x (or rows and .y). clamp() can be used exactly for this, instead of ifs and min(). Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Tested-by: Helge Deller <[email protected]> # parisc STI console Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions