Message ID | 4C86538E.3080206@mellanox.co.il (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/opensm/opensm/osm_mesh.c b/opensm/opensm/osm_mesh.c index 9d1082a..d156b7a 100644 --- a/opensm/opensm/osm_mesh.c +++ b/opensm/opensm/osm_mesh.c @@ -1385,7 +1385,8 @@ static int compare_switches(const void *p1, const void *p2) for (i = 0; i < ctx->mesh->dimension; i++) { j = ctx->mesh->dim_order[i]; - if ((ret = s1->node->coord[j] - s2->node->coord[j])); + ret = s1->node->coord[j] - s2->node->coord[j]; + if (ret) return ret; }