Skip to contentSkip to conversation

opensm/osm_req.c: In osm_send_trap144, eliminate redundant clear of m_key in smp

PATCH Applied Hal Rosenstock 2 participants 2 messages Jun 22, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_req.c: In osm_send_trap144, eliminate redundant clear of m_key in smp

Already cleared by prior memset

---

opensm/opensm/osm_req.c +0 -1
index b452089..7e9e664 100644
@@ -250,7 +250,6 @@ int osm_send_trap144(osm_sm_t * sm, ib_net16_t local)
 	smp->method = IB_MAD_METHOD_TRAP;
 	smp->trans_id = cl_hton64((uint64_t) cl_atomic_inc(&sm->sm_trans_id));
 	smp->attr_id = IB_MAD_ATTR_NOTICE;
-	smp->m_key = 0;
 
 	ntc = (ib_mad_notice_attr_t *) smp->data;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]