]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Remove unnecessary platform_get_resource() error check
authorweiyongjun (A) <weiyongjun1@huawei.com>
Wed, 17 Jan 2018 11:28:38 +0000 (11:28 +0000)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:21 +0000 (14:49 -0500)
commitb763e757e5b21d03c7f7748674de1d415307fbe7
treeba80926ef5b5692822e77a4b3479842a715b0a7a
parenta27637c96fabefd8355b07848a8621a566f668ba
RDMA/hns: Remove unnecessary platform_get_resource() error check

devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c