Skip to contentSkip to conversation

RDMA/ocrdma: remove a unused-label warning

PATCH New [email protected] 1 participant 1 message Sep 29, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/ocrdma: remove a unused-label warning

From: Li RongQing <[email protected]>

If disable IPV6, and the warning will happen:
drivers/infiniband/hw/ocrdma/ocrdma_main.c:650:1: warning: label ‘err_notifier6’ defined but not used [-Wunused-label]

---
 drivers/infiniband/hw/ocrdma/ocrdma_main.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/infiniband/hw/ocrdma/ocrdma_main.c +2 -0
index 256a06b..c108623 100644
@@ -646,8 +646,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;
 }
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html