staging: wilc1000: use ENOBUFS error code instead of WILC_TX_ERR_NO_BUF macro
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 12 Nov 2018 05:45:32 +0000 (05:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Nov 2018 22:46:51 +0000 (14:46 -0800)
commit68b4f745cf19633568ea459f7a741aef370ea0da
tree1d62d91538148dd9175c7663b5d483a8d8c50306
parentd0e41eff4c892092d7a4aba0d9a3771b5939d31f
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: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan_if.h