]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
IB/mlx5: Simplify WQE count power of two check
authorGal Pressman <galpress@amazon.com>
Wed, 6 Feb 2019 13:45:35 +0000 (15:45 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 7 Feb 2019 20:14:55 +0000 (13:14 -0700)
commitaf8b38ed0b9d34db940a52418e7849904336ace5
tree9b2a0b3457e7ddeba776254583ee1970862ba468
parent1a7a05e88fa0e4e168f83585d1bb1937197a9745
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: Gal Pressman <galpress@amazon.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c