Commit 9b17dbd9 authored by Sun Ke's avatar Sun Ke Committed by Paolo Abeni

net: ethernet: altera: TSE: fix error return code in altera_tse_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: fef29982 ("net: altera: tse: convert to phylink")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSun Ke <sunke32@huawei.com>
Link: https://lore.kernel.org/r/20220920020041.2685948-1-sunke32@huawei.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 7a5d48c4
......@@ -1411,6 +1411,7 @@ static int altera_tse_probe(struct platform_device *pdev)
priv->phy_iface, &alt_tse_phylink_ops);
if (IS_ERR(priv->phylink)) {
dev_err(&pdev->dev, "failed to create phylink\n");
ret = PTR_ERR(priv->phylink);
goto err_init_phy;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment