net: tsec: Fix NULL access in case init_phy() fails
If the PHY is not recognized don't access phydev (NULL) and return 0 to signal failure. Signed-off-by: NClaudiu Manoil <claudiu.manoil@freescale.com> Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
Showing
想要评论请 注册 或 登录