Commit 7944ff4e authored by Lijun Ou's avatar Lijun Ou Committed by Doug Ledford

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: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarWei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: default avatarShaobo Xu <xushaobo2@huawei.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 5e437b1d
...@@ -474,7 +474,6 @@ struct hns_roce_ib_iboe { ...@@ -474,7 +474,6 @@ struct hns_roce_ib_iboe {
spinlock_t lock; spinlock_t lock;
struct net_device *netdevs[HNS_ROCE_MAX_PORTS]; struct net_device *netdevs[HNS_ROCE_MAX_PORTS];
struct notifier_block nb; struct notifier_block nb;
struct notifier_block nb_inet;
u8 phy_port[HNS_ROCE_MAX_PORTS]; u8 phy_port[HNS_ROCE_MAX_PORTS];
}; };
......
...@@ -424,7 +424,6 @@ static void hns_roce_unregister_device(struct hns_roce_dev *hr_dev) ...@@ -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; struct hns_roce_ib_iboe *iboe = &hr_dev->iboe;
unregister_inetaddr_notifier(&iboe->nb_inet);
unregister_netdevice_notifier(&iboe->nb); unregister_netdevice_notifier(&iboe->nb);
ib_unregister_device(&hr_dev->ib_dev); ib_unregister_device(&hr_dev->ib_dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment