]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB/cm: Factor out ipoib_cm_free_rx_reap_list()
authorRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:24 +0000 (14:15 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:24 +0000 (14:15 -0800)
commitb09e3e759be6de19caa4730abbee498ff6abe9b0
tree684815ced67fd8443fe9e039cba4b4909c1f73ce
parent5e3b8e40e8172acb8b3eb9c53f669561153dfbe2
IPoIB/cm: Factor out ipoib_cm_free_rx_reap_list()

Factor out the code for going through the rx_reap list of struct
ipoib_cm_rx and freeing each one.  This consolidates the code
duplicated between ipoib_cm_dev_stop() and ipoib_cm_rx_reap() and
reduces the risk of error when adding additional accounting.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c