[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1477146518-28470-1-git-send-email-weiyj.lk@gmail.com>
Date: Sat, 22 Oct 2016 14:28:38 +0000
From: Wei Yongjun <weiyj.lk@...il.com>
To: Vince Bridgers <vbridger@...nsource.altera.com>
Cc: Wei Yongjun <weiyongjun1@...wei.com>, netdev@...r.kernel.org,
nios2-dev@...ts.rocketboards.org
Subject: [PATCH -next] net: eth: altera: Fix error return code in altera_tse_probe()
From: Wei Yongjun <weiyongjun1@...wei.com>
Fix to return error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
drivers/net/ethernet/altera/altera_tse_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index cc9787e..8e92084 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -1329,11 +1329,13 @@ static int altera_tse_probe(struct platform_device *pdev)
if (upper_32_bits(priv->rxdescmem_busaddr)) {
dev_dbg(priv->device,
"SGDMA bus addresses greater than 32-bits\n");
+ ret = -EINVAL;
goto err_free_netdev;
}
if (upper_32_bits(priv->txdescmem_busaddr)) {
dev_dbg(priv->device,
"SGDMA bus addresses greater than 32-bits\n");
+ ret = -EINVAL;
goto err_free_netdev;
}
} else if (priv->dmaops &&
Powered by blists - more mailing lists