]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commitcbd4165159fe0d2c045ea847c7f5ddea6debfd97
tree0f0f805f064cb857c61b6afcfebd20f04095f085
parent3aeddc40b288453d483ef063ba65ed58b314d584
RDMA/hns: Remove unnecessary platform_get_resource() error check

BugLink: https://bugs.launchpad.net/bugs/1770974
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>
(cherry picked from commit 0b5fe5c43ab67130d259d800fcc109c7340acb63)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c