]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
RDMA/nes: Fix tmp_addr compilation warning
authorChien Tung <chien.tin.tung@intel.com>
Fri, 6 Mar 2009 23:12:11 +0000 (15:12 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 6 Mar 2009 23:12:11 +0000 (15:12 -0800)
In find_node(), tmp_addr causes an "unused variable" warning when
INFINIBAND_NES_DEBUG is not defined.  It's only used in a nes_debug()
and the print does not make sense.  So take out the whole thing.

Reported-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c

index 6f42ab6bd021532ec74b8f1dfa25cfb680e639ca..bd918df3d22c8423a3a9cc55225a62f267b48c88 100644 (file)
@@ -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) {