aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChien Tung <chien.tin.tung@intel.com>2009-04-27 16:36:03 -0400
committerRoland Dreier <rolandd@cisco.com>2009-04-27 16:36:03 -0400
commit1f0dba1e51cfc93bf4545811839a84c879086fd4 (patch)
tree24cd91ae82c72dbb6c931d5a582edfa6f2d3b4fa
parent0e4562da9e533188108d00022cf3650cb9e29aae (diff)
RDMA/nes: Fix unused variable compile warning when INFINIBAND_NES_DEBUG=n
Remove the NES_DEBUG that is causing the compile warning about an unused variable when INFINIBAND_NES_DEBUG is not enabled. Signed-off-by: Chien Tung <chien.tin.tung@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index dbd9a75474e3..7da5437d9859 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -854,7 +854,6 @@ static struct nes_cm_listener *find_listener(struct nes_cm_core *cm_core,
854{ 854{
855 unsigned long flags; 855 unsigned long flags;
856 struct nes_cm_listener *listen_node; 856 struct nes_cm_listener *listen_node;
857 __be32 tmp_addr = cpu_to_be32(dst_addr);
858 857
859 /* walk list and find cm_node associated with this session ID */ 858 /* walk list and find cm_node associated with this session ID */
860 spin_lock_irqsave(&cm_core->listen_list_lock, flags); 859 spin_lock_irqsave(&cm_core->listen_list_lock, flags);
@@ -871,9 +870,6 @@ static struct nes_cm_listener *find_listener(struct nes_cm_core *cm_core,
871 } 870 }
872 spin_unlock_irqrestore(&cm_core->listen_list_lock, flags); 871 spin_unlock_irqrestore(&cm_core->listen_list_lock, flags);
873 872
874 nes_debug(NES_DBG_CM, "Unable to find listener for %pI4:%x\n",
875 &tmp_addr, dst_port);
876
877 /* no listener */ 873 /* no listener */
878 return NULL; 874 return NULL;
879} 875}