net: stmmac: Make 'alloc_dma_[rt]x_desc_resources()' look even closer
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sat, 8 Jul 2017 07:46:54 +0000 (09:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jul 2017 20:33:54 +0000 (13:33 -0700)
commit6224226030da93c062621527fd0070be3f718a88
treece479bf3ac59368375a4f1c3f86906c838bc6e42
parent6941f7cc71a719089f7add4afc82bb80fc5a281d
net: stmmac: Make 'alloc_dma_[rt]x_desc_resources()' look even closer

'alloc_dma_[rt]x_desc_resources()' functions look very close.
Remove a useless initialization and use the same label name for error
handling path in order to get them even closer.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c