* [PATCH opensm] osm_congestion_control.c: Simplify some code
@ 2013-04-08 11:37 Hal Rosenstock
0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2013-04-08 11:37 UTC (permalink / raw)
To: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Cc: Chu, Al, Shlomi Nimrodi
No need for p_osm->sm.p_subn->p_osm; just p_osm is sufficient
Found-by: Shlomi Nimrodi <shlomin-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/opensm/osm_congestion_control.c b/opensm/osm_congestion_control.c
index 17af407..e27ba20 100644
--- a/opensm/osm_congestion_control.c
+++ b/opensm/osm_congestion_control.c
@@ -362,7 +362,7 @@ int osm_congestion_control_setup(struct osm_opensm *p_osm)
/*
* Do nothing unless the most recent routing attempt was successful.
*/
- if (!p_osm->sm.p_subn->p_osm->routing_engine_used)
+ if (!p_osm->routing_engine_used)
return 0;
cc_setup_mad_data(&p_osm->sm);
@@ -409,7 +409,7 @@ int osm_congestion_control_setup(struct osm_opensm *p_osm)
int osm_congestion_control_wait_pending_transactions(struct osm_opensm *p_osm)
{
- osm_congestion_control_t *cc = &p_osm->sm.p_subn->p_osm->cc;
+ osm_congestion_control_t *cc = &p_osm->cc;
if (!p_osm->subn.opt.congestion_control)
return 0;
--
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] only message in thread
only message in thread, other threads:[~2013-04-08 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-08 11:37 [PATCH opensm] osm_congestion_control.c: Simplify some code Hal Rosenstock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.