]> Pileus Git - ~andy/linux/commit
sky2: Create buffer alloc and free helpers
authorMike McCormack <mikem@ring3k.org>
Tue, 1 Sep 2009 03:21:35 +0000 (03:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2009 00:40:42 +0000 (17:40 -0700)
commit90bbebb4a8258a398705ecaa2e6b9e177928ee7a
treeb42a5319440725da3b296bcc727672ba7107452c
parent10547ae2c01acdace636e23c991b21fef05428b4
sky2: Create buffer alloc and free helpers

Refactor similar two sections of code that free buffers into one.
Only call tx_init if all buffer allocations succeed.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c