Skip to content
Commit af8b38ed authored by Gal Pressman's avatar Gal Pressman Committed by Jason Gunthorpe
Browse files

IB/mlx5: Simplify WQE count power of two check



Use is_power_of_2() instead of hard coding it in the driver. While at it,
fix the meaningless error print.

Signed-off-by: default avatarGal Pressman <galpress@amazon.com>
Acked-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 1a7a05e8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment