]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: am65-cpts: update ret when ptp_clock is ERROR
authorWang Qing <wangqing@vivo.com>
Thu, 12 Nov 2020 16:45:41 +0000 (18:45 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Nov 2020 23:25:43 +0000 (15:25 -0800)
commit631904a135401a3e5374e6cf0f7a6bf43af8f7a2
treec06786f7f344cd0681ca07031e5e40973c64706e
parentce6092137480a028309082dc6be6d52bd395d486
net: ethernet: ti: am65-cpts: update ret when ptp_clock is ERROR

We always have to update the value of ret, otherwise the
 error value may be the previous one.

Fixes: 8fd963644f67 ("net: ethernet: ti: introduce am654 common platform time sync driver")
Signed-off-by: Wang Qing <wangqing@vivo.com>
[grygorii.strashko@ti.com: fix build warn, subj add fixes tag]
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/20201112164541.3223-1-grygorii.strashko@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpts.c