[ofa-general] [PATCH][MINOR] opensm/osm_ucast_ftree.c: Eliminate unnecessary check in __osm_ftree_sw_tbl_element_create
Hal Rosenstock
hrosenstock at xsigo.com
Wed Jun 4 04:37:16 PDT 2008
opensm/osm_ucast_ftree.c: Eliminate unnecessary check in
__osm_ftree_sw_tbl_element_create
Signed-off-by: Hal Rosenstock <hal at xsigo.com>
diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index e7104e5..caf231c 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -349,8 +349,7 @@ static ftree_sw_tbl_element_t *__osm_ftree_sw_tbl_element_create(IN ftree_sw_t *
return NULL;
memset(p_element, 0, sizeof(ftree_sw_tbl_element_t));
- if (p_element)
- p_element->p_sw = p_sw;
+ p_element->p_sw = p_sw;
return p_element;
}
More information about the general
mailing list