summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDave Penkler <dpenkler@gmail.com>2025-01-20 15:50:30 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-03 16:06:30 +0100
commit76d54fd5471b10ee993c217928a39d7351eaff5c (patch)
treeb665764c541ad3fefa189314b27ed2e61a7dfaf6 /tools/perf/scripts/python
parent8e4d3729efb4e4716cb12a25e06dbe40f1a0191f (diff)
staging: gpib: Use min for calculating transfer length
In the accel read and write functions the transfer length was being calculated by an if statement setting it to the lesser of the remaining bytes to read/write and the fifo size. Replace both instances with min() which is clearer and more compact. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@inria.fr> Closes: https://lore.kernel.org/r/202501182153.qHfL4Fbc-lkp@intel.com/ Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://lore.kernel.org/r/20250120145030.29684-1-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions