aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-09-29 02:59:43 -0400
committerRoland Dreier <roland@purestorage.com>2014-10-10 12:43:01 -0400
commite5dc9409933b21732a8c370e9f7cf79c2c92cbcb (patch)
tree9f9673202fbf5199615909f733941cabc74fae90 /drivers/infiniband
parent1b76d38332271d5a0468ae5e465c5ea534c473c6 (diff)
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/infiniband')
-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)
656 return 0; 656 return 0;
657 657
658err_be_reg: 658err_be_reg:
659#if IS_ENABLED(CONFIG_IPV6)
659 ocrdma_unregister_inet6addr_notifier(); 660 ocrdma_unregister_inet6addr_notifier();
660err_notifier6: 661err_notifier6:
662#endif
661 ocrdma_unregister_inetaddr_notifier(); 663 ocrdma_unregister_inetaddr_notifier();
662 return status; 664 return status;
663} 665}