net: socionext: refactor netsec_alloc_dring()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 8 Nov 2018 15:19:55 +0000 (17:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 03:42:41 +0000 (19:42 -0800)
commit0d404a61286f2ffcde2157e8c5427f93f409d8ab
tree213cb569101e95488af6b59a76acba780b1f1c56
parent4acb20b46214bc866945340b4d9e1de77700d6a3
net: socionext: refactor netsec_alloc_dring()

return -ENOMEM directly instead of assigning it in a variable

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c