[ofa-general] [PATCH] RDMA/nes: tmp_addr compilation warning
Chien Tung
chien.tin.tung at intel.com
Thu Feb 5 07:21:06 PST 2009
As reported by Manish Katiyar <mkatiyar at gmail.com>, tmp_addr is
causing a compilation warning when INFINIBAND_NES_DEBUG is not defined.
tmp_addr is used in a NES_DEBUG and the print does not make sense.
Taking out tmp_addr and the NES_DEBUG.
Signed-off-by: Chien Tung <chien.tin.tung at intel.com>
---
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 6f42ab6..bd918df 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -778,14 +778,10 @@ 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;
- __be32 tmp_addr = cpu_to_be32(loc_addr);
/* get a handle on the hte */
hte = &cm_core->connected_nodes;
- nes_debug(NES_DBG_CM, "Searching for an owner node: %pI4:%x from core %p->%p\n",
- &tmp_addr, loc_port, cm_core, hte);
-
/* walk list and find cm_node associated with this session ID */
spin_lock_irqsave(&cm_core->ht_lock, flags);
list_for_each_entry(cm_node, hte, list) {
--
1.5.3.3
More information about the general
mailing list