* [PATCH] opensm/osm_mesh.c: fixing a bug in compare_switches()
@ 2010-09-07 15:00 Yevgeny Kliteynik
[not found] ` <4C86538E.3080206-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Yevgeny Kliteynik @ 2010-09-07 15:00 UTC (permalink / raw)
To: Sasha Khapyorsky, Linux RDMA
I'm pretty sure that ";" at the end of "if" statement
is not supposed to be there (not sure how it worked till
now though).
Also, making this condition a bit more readable.
Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
---
opensm/opensm/osm_mesh.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
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;
}
--
1.6.2.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] opensm/osm_mesh.c: fixing a bug in compare_switches()
[not found] ` <4C86538E.3080206-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
@ 2010-09-09 14:30 ` Sasha Khapyorsky
2010-09-09 19:11 ` Bob Pearson
0 siblings, 1 reply; 3+ messages in thread
From: Sasha Khapyorsky @ 2010-09-09 14:30 UTC (permalink / raw)
To: kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb; +Cc: Linux RDMA
On 18:00 Tue 07 Sep , Yevgeny Kliteynik wrote:
> I'm pretty sure that ";" at the end of "if" statement
> is not supposed to be there (not sure how it worked till
> now though).
> Also, making this condition a bit more readable.
>
> Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Applied. Thanks.
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] opensm/osm_mesh.c: fixing a bug in compare_switches()
2010-09-09 14:30 ` Sasha Khapyorsky
@ 2010-09-09 19:11 ` Bob Pearson
0 siblings, 0 replies; 3+ messages in thread
From: Bob Pearson @ 2010-09-09 19:11 UTC (permalink / raw)
To: Sasha Khapyorsky; +Cc: kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb, Linux RDMA
Thanks Sasha,
I'm not sure where that came from. This was a little optimization that
improved the results in some cases. But wouldn't break the rest of the code.
Seems to have gotten broken somewhere along the way.
Bob Pearson
On 09/09/2010 09:30 AM, Sasha Khapyorsky wrote:
> On 18:00 Tue 07 Sep , Yevgeny Kliteynik wrote:
>
>> I'm pretty sure that ";" at the end of "if" statement
>> is not supposed to be there (not sure how it worked till
>> now though).
>> Also, making this condition a bit more readable.
>>
>> Signed-off-by: Yevgeny Kliteynik<kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
>>
> Applied. Thanks.
>
> Sasha
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-09 19:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 15:00 [PATCH] opensm/osm_mesh.c: fixing a bug in compare_switches() Yevgeny Kliteynik
[not found] ` <4C86538E.3080206-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
2010-09-09 14:30 ` Sasha Khapyorsky
2010-09-09 19:11 ` Bob Pearson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox