Commit 68b4f745 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: use ENOBUFS error code instead of WILC_TX_ERR_NO_BUF macro

Make use of 'ENOBUFS' instead of WILC_TX_ERR_NO_BUF macro. The value of
WILC_TX_ERR_NO_BUF is -2, which is confusing with ENOENT error code.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0e41eff
...@@ -242,7 +242,7 @@ static int linux_wlan_txq_task(void *vp) ...@@ -242,7 +242,7 @@ static int linux_wlan_txq_task(void *vp)
if (netif_queue_stopped(wl->vif[1]->ndev)) if (netif_queue_stopped(wl->vif[1]->ndev))
netif_wake_queue(wl->vif[1]->ndev); netif_wake_queue(wl->vif[1]->ndev);
} }
} while (ret == WILC_TX_ERR_NO_BUF && !wl->close); } while (ret == -ENOBUFS && !wl->close);
} }
return 0; return 0;
} }
......
...@@ -611,7 +611,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count) ...@@ -611,7 +611,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
goto out_release_bus; goto out_release_bus;
if (entries == 0) { if (entries == 0) {
ret = WILC_TX_ERR_NO_BUF; ret = -ENOBUFS;
goto out_release_bus; goto out_release_bus;
} }
......
...@@ -41,8 +41,6 @@ struct tx_complete_data { ...@@ -41,8 +41,6 @@ struct tx_complete_data {
typedef void (*wilc_tx_complete_func_t)(void *, int); typedef void (*wilc_tx_complete_func_t)(void *, int);
#define WILC_TX_ERR_NO_BUF (-2)
/******************************************** /********************************************
* *
* Wlan Configuration ID * Wlan Configuration ID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment