Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f9f2dba authored by Guy German's avatar Guy German Committed by Roland Dreier
Browse files

[PATCH] IB/mthca: use generic function instead of arbel_ version in mthca_free_region()



Use the generic key_to_hw_index() function instead of the Arbel-specific
version in mthca_free_region().

Signed-off-by: default avatarGuy German <guyg@voltaire.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent ffbf4c34
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -459,7 +459,7 @@ int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd,
static void mthca_free_region(struct mthca_dev *dev, u32 lkey)
static void mthca_free_region(struct mthca_dev *dev, u32 lkey)
{
{
	mthca_table_put(dev, dev->mr_table.mpt_table,
	mthca_table_put(dev, dev->mr_table.mpt_table,
			arbel_key_to_hw_index(lkey));
			key_to_hw_index(dev, lkey));


	mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey));
	mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey));
}
}