net: ethernet: ti: netcp_core: return error while dma channel open issue
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Wed, 10 May 2017 17:28:05 +0000 (10:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 May 2017 16:39:34 +0000 (12:39 -0400)
commit5b6cb43b4d625b04a4049d727a116edbfe5cf0f4
tree83eb9258e4ea1ba0ee58a40a0067bc4c6bf1cfa7
parentdc319c4bbc1e297befba195d7ed22fc28b30df63
net: ethernet: ti: netcp_core: return error while dma channel open issue

Fix error path while dma open channel issue. Also, no need to check output
on NULL if it's never returned.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c
drivers/soc/ti/knav_dma.c