diff options
author | Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> | 2017-05-10 10:28:05 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-11 12:39:34 -0400 |
commit | 5b6cb43b4d625b04a4049d727a116edbfe5cf0f4 (patch) | |
tree | 83eb9258e4ea1ba0ee58a40a0067bc4c6bf1cfa7 /drivers/soc | |
parent | dc319c4bbc1e297befba195d7ed22fc28b30df63 (diff) | |
download | op-kernel-dev-5b6cb43b4d625b04a4049d727a116edbfe5cf0f4.zip op-kernel-dev-5b6cb43b4d625b04a4049d727a116edbfe5cf0f4.tar.gz |
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>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/ti/knav_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c index ecebe2e..026182d 100644 --- a/drivers/soc/ti/knav_dma.c +++ b/drivers/soc/ti/knav_dma.c @@ -413,7 +413,7 @@ static int of_channel_match_helper(struct device_node *np, const char *name, * @name: slave channel name * @config: dma configuration parameters * - * Returns pointer to appropriate DMA channel on success or NULL. + * Returns pointer to appropriate DMA channel on success or error. */ void *knav_dma_open_channel(struct device *dev, const char *name, struct knav_dma_cfg *config) |