[openib-general] [PATCH] OpenSM/osm_sa_portinfo_record.c: Fix precedence in bitwise compare of PortInfo capability mask
Hal Rosenstock
halr at voltaire.com
Mon Apr 3 06:14:45 PDT 2006
OpenSM/osm_sa_portinfo_record.c: Fix precedence in bitwise compare of
PortInfo capability mask
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_sa_portinfo_record.c
===================================================================
--- opensm/osm_sa_portinfo_record.c (revision 6161)
+++ opensm/osm_sa_portinfo_record.c (working copy)
@@ -294,7 +294,7 @@ __osm_sa_pir_check_physp(
{
if (p_ctxt->is_enhanced_comp_mask)
{
- if ( (p_comp_pi->capability_mask & p_pi->capability_mask != p_comp_pi->capability_mask) )
+ if ( ( ( p_comp_pi->capability_mask & p_pi->capability_mask ) != p_comp_pi->capability_mask) )
goto Exit;
}
else
More information about the general
mailing list