Skip to content

Commit

Permalink
RDMA/ocrdma: Remove a unused-label warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li RongQing authored and Roland Dreier committed Oct 10, 2014
1 parent 1b76d38 commit e5dc940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/hw/ocrdma/ocrdma_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e5dc940

Please sign in to comment.