]> err.no Git - linux-2.6/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)
commitefcd99717f76c6d19dd81203c60fe198480de522
tree684815ced67fd8443fe9e039cba4b4909c1f73ce
parent7b3687df66cab4ecd6efb42cfa0c7de60cc4e3b9
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