diff options
author | Qasim Ijaz <qasdev00@gmail.com> | 2025-02-14 01:16:22 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2025-03-21 02:53:55 +0300 |
commit | 978540050a85a2b7fc77b60a1cfaec110682e9c3 (patch) | |
tree | 7e0e5e865774b16e751edcd306be58cbf03cf8a3 /tools/perf/scripts/python/stackcollapse.py | |
parent | 7cbafa3ff0187cdfa922aa7eb3d578a93999b3a9 (diff) | |
download | linux-978540050a85a2b7fc77b60a1cfaec110682e9c3.tar.xz |
nvme-fc: Utilise min3() to simplify queue count calculation
Refactor nvme_fc_create_io_queues() and nvme_fc_recreate_io_queues() to
use the min3() macro to find the minimum between 3 values instead of
multiple min()'s. This shortens the code and makes it easier to read.
Signed-off-by: Qasim Ijaz <qasdev00@gmail.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions