mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 01:54:00 +00:00
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: fef2998203e1 ("net: altera: tse: convert to phylink") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sun Ke <sunke32@huawei.com> Link: https://lore.kernel.org/r/20220920020041.2685948-1-sunke32@huawei.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
7a5d48c446
commit
9b17dbd97d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user