Skip to contentSkip to conversation

osm_pkey.[h c]: Remove dead function osm_pkey_tbl_clear_accum_pkeys

PATCH New Hal Rosenstock 1 participant 1 message Dec 11, 2013 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_pkey.[h c]: Remove dead function osm_pkey_tbl_clear_accum_pkeys

From: Vladimir Koushnir <vladimirk-VPRAkNaXOzVWk0Htik3J/[email protected]>

---
 include/opensm/osm_pkey.h |   23 -----------------------
 opensm/osm_pkey.c         |   15 ---------------
 2 files changed, 0 insertions(+), 38 deletions(-)
include/opensm/osm_pkey.h +0 -23
index 9459b5b..090a8be 100644
@@ -340,29 +340,6 @@ osm_pkey_tbl_set_accum_pkeys(IN osm_pkey_tbl_t * p_pkey_tbl,
 *
 *********/
 
-/****f* OpenSM: osm_pkey_tbl_clear_accum_pkeys
-* NAME
-*  osm_pkey_tbl_clear_accum_pkeys
-*
-* DESCRIPTION
-*   Clears the given pkey in the "accum_pkeys" array
-*
-* SYNOPSIS
-*/
-void
-osm_pkey_tbl_clear_accum_pkeys(IN osm_pkey_tbl_t * p_pkey_tbl,
-			       IN uint16_t pkey);
-/*
-* p_pkey_tbl
-*   [in] Pointer to the PKey table
-*
-* pkey
-*   [in] PKey to clear
-*
-* NOTES
-*
-*********/
-
 /****f* OpenSM: osm_pkey_tbl_set_new_entry
 * NAME
 *  osm_pkey_tbl_set_new_entry
opensm/osm_pkey.c +0 -15
index fe0a946..9e7e96f 100644
@@ -235,21 +235,6 @@ void osm_pkey_find_last_accum_pkey_index(IN osm_pkey_tbl_t * p_pkey_tbl)
 }
 
 /*
-  Clears the given pkey (along with it's overall index) in the accum_pkeys array.
-*/
-void osm_pkey_tbl_clear_accum_pkeys(IN osm_pkey_tbl_t * p_pkey_tbl,
-				    IN uint16_t pkey)
-{
-	void *ptr;
-
-	ptr = cl_map_remove(&p_pkey_tbl->accum_pkeys, pkey);
-	if (ptr == NULL)
-		return;
-
-	osm_pkey_find_last_accum_pkey_index(p_pkey_tbl);
-}
-
-/*
   Store the given pkey in the "new" blocks array.
   Also, make sure the regular block exists.
 */
Signature · 6 lines
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html