mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dc319c4bbc
commit
5b6cb43b4d
2 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue