[ofa-general] [PATCH] opensm/osm_lid_mgr.c: Trivial simplification in osm_lid_mgr_process_subnet
Hal Rosenstock
hnrose at comcast.net
Thu Jul 30 10:55:51 PDT 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/opensm/osm_lid_mgr.c b/opensm/opensm/osm_lid_mgr.c
index 34625ba..64157e0 100644
--- a/opensm/opensm/osm_lid_mgr.c
+++ b/opensm/opensm/osm_lid_mgr.c
@@ -1228,9 +1228,8 @@ int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * p_mgr)
min_lid_ho, max_lid_ho);
/* the proc returns the fact it sent a set port info */
- if (lid_mgr_set_physp_pi(p_mgr, p_port, p_port->p_physp,
- cl_hton16(min_lid_ho)))
- ret = -1;
+ ret = lid_mgr_set_physp_pi(p_mgr, p_port, p_port->p_physp,
+ cl_hton16(min_lid_ho));
} /* all ports */
/* store the guid to lid table in persistent db */
More information about the general
mailing list