commit | 50756ebecf69276b8a908409fa32c123bb12420b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Oct 14 22:26:11 2016 +0300 |
committer | David S. Miller <davem@davemloft.net> | Sat Oct 15 17:35:30 2016 -0400 |
tree | 4c92bc7d6168728e80b465240d56a143e9dd52ef | |
parent | 93966b715b32a783a1641f5a385901bbfab04733 [diff] |
stmmac: fix an error code in stmmac_ptp_register() PTR_ERR(NULL) is success. We have to preserve the error code earlier. Fixes: 7086605a6ab5 ("stmmac: fix error check when init ptp") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>