]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: altera: TSE: fix error return code in altera_tse_probe()
authorSun Ke <sunke32@huawei.com>
Tue, 20 Sep 2022 02:00:41 +0000 (10:00 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Sep 2022 10:25:59 +0000 (12:25 +0200)
commit2dd078ff89b9fa5ae5bcb884466ea6e7c8847eca
treecda51c11347e80bb0e5f5d0bbd051d47083d020b
parent8a1ee8ba820d14614a6784efb17d8508a5c6c2d9
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: 58cbf870fb40 ("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>
drivers/net/ethernet/altera/altera_tse_main.c