commit | ebbd96fb2861f591df011cd0eac67dd367596cca | [log] [tgz] |
---|---|---|
author | Petri Gynther <pgynther@google.com> | Wed Mar 25 12:35:11 2015 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 27 14:26:13 2015 -0700 |
tree | 13f882e9dd5d369747dd07424cd8e6828246b056 | |
parent | 9dbac28fc193e3972f566f120dce67d69a1df634 [diff] |
net: bcmgenet: simplify bcmgenet_init_dma() Do the two kcalloc() calls first, before proceeding into Rx/Tx DMA init. Makes the error case handling much simpler. Signed-off-by: Petri Gynther <pgynther@google.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Jaedon Shin <jaedon.shin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>