drivers: net: ldpaa_eth: Correct error handler for qbman_swp_acquire()
authorAshish Kumar <Ashish.Kumar@nxp.com>
Thu, 26 Oct 2017 10:33:22 +0000 (16:03 +0530)
committerYork Sun <york.sun@nxp.com>
Tue, 14 Nov 2017 16:33:20 +0000 (08:33 -0800)
commit5e9445da288c5121546235e8201768abd087b281
tree996a19d422a30ac28ef7d0c3c8f986628662b31c
parentc253573f3e269fd9a24ee6684d87dd91106018a5
drivers: net: ldpaa_eth: Correct error handler for qbman_swp_acquire()

The zero value returned from qbman_swp_acquire() is an error
condition meaning no free buffer for allocation.

Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Kushwaha Prabhakar <prabhakar@freescale.com>
[YS: revised commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/net/ldpaa_eth/ldpaa_eth.c