ucc_geth: separate out rx/tx ring alloc and free operations
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 27 Feb 2012 02:36:29 +0000 (02:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2012 01:54:01 +0000 (20:54 -0500)
commite19a82c18f0e6360ee9fd431721794eb0036c0cd
tree563c8e2c3490b151bdbab03be25c92e3201915a6
parent4b32da2bcf1de2b7a196a0e48389d231b4472c36
ucc_geth: separate out rx/tx ring alloc and free operations

Factor out the the existing allocation and free operations
so that they can be used individually.

This is to improve code readability, and also to prepare for
possible future changes like better error recovery and more
dynamic configuration (e.g on-the-fly resizing of the rings).

This change represents a straight up relocation of the existing
code into separate routines without changing any of the contained
code itself.  Local variables are relocated as necessary.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c