Subject: [PATCH 1/1 net-next]

From: Breno Leitao <[email-masked]>
Date: Tue, 17 Feb 2009 11:08:41 -0300

Commit 03080e5cbe0222744173d3e726f6ba5d13b7f04e is causing some warning
during compilation.

tmp_addr is an unused variable if CONFIG_INFINIBAND_NES_DEBUG is
 not used. Causing the following Warning.

drivers/infiniband/hw/nes/nes_cm.c: In function ‘find_node’:
drivers/infiniband/hw/nes/nes_cm.c:781: warning: unused variable ‘tmp_addr’
drivers/infiniband/hw/nes/nes_cm.c: In function ‘find_listener’:
drivers/infiniband/hw/nes/nes_cm.c:820: warning: unused variable ‘tmp_addr’

Signed-off-by: Breno Leitao <[email-masked]>
---
 drivers/infiniband/hw/nes/nes_cm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index a01b448..2b34859 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -778,7 +778,9 @@ static struct nes_cm_node *find_node(struct nes_cm_core *cm_core,
 	unsigned long flags;
 	struct list_head *hte;
 	struct nes_cm_node *cm_node;
+#ifdef CONFIG_INFINIBAND_NES_DEBUG
 	__be32 tmp_addr = cpu_to_be32(loc_addr);
+#endif
 
 	/* get a handle on the hte */
 	hte = &cm_core->connected_nodes;
@@ -817,7 +819,9 @@ static struct nes_cm_listener *find_listener(struct nes_cm_core *cm_core,
 {
 	unsigned long flags;
 	struct nes_cm_listener *listen_node;
+#ifdef CONFIG_INFINIBAND_NES_DEBUG
 	__be32 tmp_addr = cpu_to_be32(dst_addr);
+#endif
 
 	/* walk list and find cm_node associated with this session ID */
 	spin_lock_irqsave(&cm_core->listen_list_lock, flags);
-- 
1.6.0.2