3c59x: consolidate error cleanup in vortex_init_one()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 9 Jun 2013 20:16:52 +0000 (00:16 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 08:53:52 +0000 (01:53 -0700)
commitafd6eae13cc4229e25d59334cdc46d042b24a4a5
tree6f373c9d15d81022085d156a80aab775300c163a
parent3f8b96379a820318db37f7b6e81e6e459ad56efe
3c59x: consolidate error cleanup in vortex_init_one()

The PCI driver's probe() method  duplicates the error cleanup code each time it
has to do error exit. Consolidate the error cleanup code  in  one place and use
*goto* to jump to the right places.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c