Re: [PATCH] soc: ti: knav_dma: Fix some error handling

2017-02-18 Thread kbuild test robot
Hi Christophe, [auto build test ERROR on v4.9-rc8] [also build test ERROR on next-20170217] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] soc: ti: knav_dma: Fix some error handling

2017-02-18 Thread kbuild test robot
Hi Christophe, [auto build test ERROR on v4.9-rc8] [also build test ERROR on next-20170217] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH] soc: ti: knav_dma: Fix some error handling

2017-02-18 Thread Christophe JAILLET
'pktdma_get_regs()' never returns NULL. It returns an error pointer or a valid pointer. So test its return value with IS_ERR. Signed-off-by: Christophe JAILLET --- After checking with IS_ERR, it could be better to propagate the error code instead of returning

[PATCH] soc: ti: knav_dma: Fix some error handling

2017-02-18 Thread Christophe JAILLET
'pktdma_get_regs()' never returns NULL. It returns an error pointer or a valid pointer. So test its return value with IS_ERR. Signed-off-by: Christophe JAILLET --- After checking with IS_ERR, it could be better to propagate the error code instead of returning -ENODEV uncondionnaly ---