aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_main.c
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2017-09-29 23:10:13 +0800
committerDoug Ledford <dledford@redhat.com>2017-09-29 12:16:49 -0400
commit7944ff4e5d8a457c1d1b7fe063b6b774c47dea86 (patch)
tree58a839984da13ad58a4c0625fe338f5b60769e23 /drivers/infiniband/hw/hns/hns_roce_main.c
parentRDMA/hns: Avoid NULL pointer exception (diff)
downloadlinux-dev-7944ff4e5d8a457c1d1b7fe063b6b774c47dea86.tar.xz
linux-dev-7944ff4e5d8a457c1d1b7fe063b6b774c47dea86.zip
RDMA/hns: Don't unregister a callback we didn't register
The driver doesn't actually register an inetaddr notifier function, so there is no need to unregister it on shutdown. 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>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_main.c')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c
index 6f2d57206c08..3dcb2df20ba3 100644
--- a/drivers/infiniband/hw/hns/hns_roce_main.c
+++ b/drivers/infiniband/hw/hns/hns_roce_main.c
@@ -424,7 +424,6 @@ static void hns_roce_unregister_device(struct hns_roce_dev *hr_dev)
{
struct hns_roce_ib_iboe *iboe = &hr_dev->iboe;
- unregister_inetaddr_notifier(&iboe->nb_inet);
unregister_netdevice_notifier(&iboe->nb);
ib_unregister_device(&hr_dev->ib_dev);
}