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)
commit7944ff4e5d8a457c1d1b7fe063b6b774c47dea86
tree58a839984da13ad58a4c0625fe338f5b60769e23
parent5e437b1d7e8d31ff9a4b8e898eb3a6cee309edd9
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>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c