]> git.karo-electronics.de Git - karo-tx-linux.git/commit
infiniband: cxgb4: Consolidate 3 copies of the same operation into 1 helper function.
authorDavid Miller <davem@davemloft.net>
Fri, 2 Dec 2011 16:52:31 +0000 (16:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2011 20:20:20 +0000 (15:20 -0500)
commit3786cf189f8b39cac870193368f9ad9f95fff9a4
treed7e8b85a1034ded69eec04efde443a31b349d477
parent40e2bb588f7712e4d58191ccc08b716927d9c7d0
infiniband: cxgb4: Consolidate 3 copies of the same operation into 1 helper function.

Three pieces of code do the same thing, create a l2t entry and then
import this information into the c4iw_ep object.

Create a helper function and call it from these 3 locations instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c