cxgb4: avoid duplicating some resource freeing code
authorDimitris Michailidis <dm@chelsio.com>
Sun, 11 Jul 2010 12:01:16 +0000 (12:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jul 2010 00:07:45 +0000 (17:07 -0700)
commit065463915c3a2a2ce142f64ed3ed591d72ad88b1
tree79b66e4ea1f7b78993055ddfa1c7a2fe930b01c2
parentf7cabcdd51480282b58c09e5fe1c4835aaf98a66
cxgb4: avoid duplicating some resource freeing code

Currently there are two copies of some resource freeing code, turn it into
a function and call it.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4_main.c