]> git.baikalelectronics.ru Git - kernel.git/commit
net: altera: set a couple error code in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 Dec 2021 10:11:28 +0000 (13:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Dec 2021 14:23:11 +0000 (14:23 +0000)
commit2703c1a3976cf068be67b550a32aea87147ef2f7
tree7c45bab6ca8d92e0e5cd4fb54e7a80ea2acba1e6
parent562c599fecb8ef20933a73fb0aa8283ad6e7b0bd
net: altera: set a couple error code in probe()

There are two error paths which accidentally return success instead of
a negative error code.

Fixes: eaccad8b1d32 ("Altera TSE: Add main and header file for Altera Ethernet Driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c