[openib-general] {PATCH] OpenSM/osm_inform.c:__match_inf_rec: Fix sense of some comparisons just added
Hal Rosenstock
halr at voltaire.com
Mon Nov 27 09:08:02 PST 2006
OpenSM/osm_inform.c:__match_inf_rec: Fix sense of some comparisons just
added
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_inform.c
===================================================================
--- opensm/osm_inform.c (revision 10169)
+++ opensm/osm_inform.c (working copy)
@@ -211,9 +211,9 @@ __match_inf_rec(
OSM_LOG_ENTER( p_log, __match_inf_rec);
- if ( !memcmp(&p_infr->report_addr,
- &p_infr_rec->report_addr,
- sizeof(p_infr_rec->report_addr)) )
+ if ( memcmp(&p_infr->report_addr,
+ &p_infr_rec->report_addr,
+ sizeof(p_infr_rec->report_addr)) )
{
osm_log( p_log, OSM_LOG_DEBUG,
"__match_inf_rec: "
@@ -228,9 +228,9 @@ __match_inf_rec(
&all_zero_gid,
sizeof(p_infr_rec->inform_record.inform_info.gid)) )
{
- if ( !memcmp(&p_infr->inform_record.inform_info.gid,
- &p_infr_rec->inform_record.inform_info.gid,
- sizeof(p_infr->inform_record.inform_info.gid)) )
+ if ( memcmp(&p_infr->inform_record.inform_info.gid,
+ &p_infr_rec->inform_record.inform_info.gid,
+ sizeof(p_infr->inform_record.inform_info.gid)) )
{
osm_log( p_log, OSM_LOG_DEBUG,
"__match_inf_rec: "
More information about the general
mailing list