]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
RDMA/hns: Don't unregister a callback we didn't register
authorLijun Ou <oulijun@huawei.com>
Fri, 29 Sep 2017 15:10:13 +0000 (23:10 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 16:16:49 +0000 (12:16 -0400)
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>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c

index 4d9d5d7da60a8bc8bd6daa632592583c3ba4d8a1..b314ac0451af766a56bfba345d9f7c7eeb797452 100644 (file)
@@ -474,7 +474,6 @@ struct hns_roce_ib_iboe {
        spinlock_t              lock;
        struct net_device      *netdevs[HNS_ROCE_MAX_PORTS];
        struct notifier_block   nb;
-       struct notifier_block   nb_inet;
        u8                      phy_port[HNS_ROCE_MAX_PORTS];
 };
 
index 6f2d57206c08e9128c6035715862b1d3a7e441fe..3dcb2df20ba378221aba09d0d4b41984ddc47abd 100644 (file)
@@ -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);
 }