]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Refactor code for readability
authorLijun Ou <oulijun@huawei.com>
Fri, 29 Sep 2017 15:10:08 +0000 (23:10 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 16:02:30 +0000 (12:02 -0400)
commit76646d62320710689d215589f8a9c9b414f9248a
tree0369a875beaab3cdb5d2cc9f678fe58decb9bb34
parentf98c7f68f4b2c50e9c9a3bc20a742b6b3388e890
RDMA/hns: Refactor code for readability

Put the code for checking the send doorbell status into a
separate function and call it from check_qp_db_process_status
to improve indenting and readability.

It fixes the warning from static checker:
drivers/infiniband/hw/hns/hns_roce_hw_v1.c:3562 check_qp_db_process_status()
warn: inconsistent indenting.

Fixes: 5d8c7a4d6f76 ("IB/hns: Fix for checkpatch.pl comment style)
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c