]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Use macro instead of magic number
authorLijun Ou <oulijun@huawei.com>
Mon, 30 Jul 2018 12:20:29 +0000 (20:20 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:42:44 +0000 (20:42 -0600)
commit32272c23ef705d936cc0c9b08b2c4d8032b30401
tree004596f2275d9214b2db46a7ff04c1f6c1fd403a
parentb2197a06571a3d443dd587469084038da7c8312e
RDMA/hns: Use macro instead of magic number

This patch mainly uses CMD_CSQ_DESC_NUM instead of magic number in order
to improve readability.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h