RDMA/hns: Simplify attribute judgment code
authorLang Cheng <chenglang@huawei.com>
Fri, 20 Mar 2020 03:23:35 +0000 (11:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Mar 2020 19:52:27 +0000 (16:52 -0300)
commitd398d4ca5f17e7ba762bc897c82afca868e47a7c
treef69fea7f03ccf76e725018a7afbfd5163f82e10b
parent30d41e18c3a6eac39b7348ae7e3388f0ec7e680e
RDMA/hns: Simplify attribute judgment code

Combine attribute flags before masking them.

Link: https://lore.kernel.org/r/1584674622-52773-4-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c