[openib-general] {PATCH] OpenSM/osm_inform.c:__match_inf_rec: Fix sense of some comparisons just added
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Mon Nov 27 23:58:59 PST 2006
Good catch, mea culpa.
Thanks.
Hal Rosenstock wrote:
> 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: "
>
>
>
>
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>
More information about the general
mailing list