Re: [PATCH V3 net] net/ethernet: Fix error return when ptp_clock is ERROR

2020-11-10 Thread Jakub Kicinski
On Mon, 9 Nov 2020 10:17:52 +0800 Wang Qing wrote: > We always have to update the value of ret, otherwise the error value > may be the previous one. And ptp_clock_register() never return NULL > when PTP_1588_CLOCK enable. > > Signed-off-by: Wang Qing Please add a Fixes tag as I requested in

[PATCH V3 net] net/ethernet: Fix error return when ptp_clock is ERROR

2020-11-08 Thread Wang Qing
We always have to update the value of ret, otherwise the error value may be the previous one. And ptp_clock_register() never return NULL when PTP_1588_CLOCK enable. Signed-off-by: Wang Qing --- drivers/net/ethernet/ti/am65-cpts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff