Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b14ab0b authored by Chien Tung's avatar Chien Tung Committed by Roland Dreier
Browse files

RDMA/nes: Fix tmp_addr compilation warning



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: default avatarManish Katiyar <mkatiyar@gmail.com>
Signed-off-by: default avatarChien Tung <chien.tin.tung@intel.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent b9c367e7
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -778,14 +778,10 @@ static struct nes_cm_node *find_node(struct nes_cm_core *cm_core,
	unsigned long flags;
	unsigned long flags;
	struct list_head *hte;
	struct list_head *hte;
	struct nes_cm_node *cm_node;
	struct nes_cm_node *cm_node;
	__be32 tmp_addr = cpu_to_be32(loc_addr);


	/* get a handle on the hte */
	/* get a handle on the hte */
	hte = &cm_core->connected_nodes;
	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 */
	/* walk list and find cm_node associated with this session ID */
	spin_lock_irqsave(&cm_core->ht_lock, flags);
	spin_lock_irqsave(&cm_core->ht_lock, flags);
	list_for_each_entry(cm_node, hte, list) {
	list_for_each_entry(cm_node, hte, list) {