summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-09-29 08:59:43 +0200
committerRoland Dreier <roland@purestorage.com>2014-10-10 18:43:01 +0200
commite5dc9409933b21732a8c370e9f7cf79c2c92cbcb (patch)
tree9f9673202fbf5199615909f733941cabc74fae90 /drivers
parentRDMA/ocrdma: Convert kernel VA to PA for mmap in user (diff)
downloadlinux-e5dc9409933b21732a8c370e9f7cf79c2c92cbcb.tar.xz
linux-e5dc9409933b21732a8c370e9f7cf79c2c92cbcb.zip
RDMA/ocrdma: Remove a unused-label warning
If IPV6 is disabled, we get the warning: drivers/infiniband/hw/ocrdma/ocrdma_main.c:650:1: warning: label ‘err_notifier6’ defined but not used [-Wunused-label] Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c
index cb7b52a791db..b0b2257b8e04 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c
@@ -656,8 +656,10 @@ static int __init ocrdma_init_module(void)
return 0;
err_be_reg:
+#if IS_ENABLED(CONFIG_IPV6)
ocrdma_unregister_inet6addr_notifier();
err_notifier6:
+#endif
ocrdma_unregister_inetaddr_notifier();
return status;
}