]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/mlx5: Use max() macro for bfreg calculation
authorRohit Chavan <roheetchavan@gmail.com>
Tue, 5 May 2026 10:05:49 +0000 (15:35 +0530)
committerLeon Romanovsky <leon@kernel.org>
Mon, 18 May 2026 08:58:41 +0000 (04:58 -0400)
commite456dc2d81a6b43c7ace4036cceea7a822d17a13
tree80516fcb32a7dc3f5910c90c70bc797071364663
parenteb4ecdf631fe00e8020bf461503cb9b7017ed796
RDMA/mlx5: Use max() macro for bfreg calculation

Simplify the calculation of medium blue flame registers by using the
max() macro instead of open-coded ternary logic. This improves
readability and aligns with the subsystem's preference for using
standard kernel helpers.

Signed-off-by: Rohit Chavan <roheetchavan@gmail.com>
Link: https://patch.msgid.link/20260505100550.1810139-1-roheetchavan@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/qp.c