diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-09-29 06:59:43 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-10-10 16:43:01 (GMT) |
commit | e5dc9409933b21732a8c370e9f7cf79c2c92cbcb (patch) | |
tree | 9f9673202fbf5199615909f733941cabc74fae90 | |
parent | 1b76d38332271d5a0468ae5e465c5ea534c473c6 (diff) | |
download | linux-e5dc9409933b21732a8c370e9f7cf79c2c92cbcb.tar.xz |
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>
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_main.c | 2 |
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 cb7b52a..b0b2257 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; } |