aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ldpaa_eth
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-11-15 17:34:06 -0500
committerTom Rini <trini@konsulko.com>2017-11-15 17:34:06 -0500
commit72061f78462dbe09b37ec4575874a046bb9c0b03 (patch)
treef0afc0add7fb1d8b5bc6722e00d45f527bf8247c /drivers/net/ldpaa_eth
parentc253573f3e269fd9a24ee6684d87dd91106018a5 (diff)
parentbc085549afb227c2623fac406f958985718fe4c0 (diff)
Merge git://git.denx.de/u-boot-fsl-qoriq
Diffstat (limited to 'drivers/net/ldpaa_eth')
-rw-r--r--drivers/net/ldpaa_eth/ldpaa_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index f235b622b6..21be79a58a 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -334,7 +334,7 @@ static int ldpaa_eth_tx(struct eth_device *net_dev, void *buf, int len)
&buffer_start, 1);
} while (err == -EBUSY);
- if (err < 0) {
+ if (err <= 0) {
printf("qbman_swp_acquire() failed\n");
return -ENOMEM;
}