[OPW,kernel,v3,18/28] staging: rtl8723au: hal: rtl8723au_recv.c: Replace non-standard return values
diff mbox

Message ID 1414668396-4093-19-git-send-email-roberta.dobrescu@gmail.com
State New, archived
Headers show

Commit Message

Roberta Dobrescu Oct. 30, 2014, 11:26 a.m. UTC
This patch replaces non-standard return values _SUCCESS/_FAIL with 0
or an appropriate err code and modifies the code according to that.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
---
 drivers/staging/rtl8723au/hal/rtl8723au_recv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/drivers/staging/rtl8723au/hal/rtl8723au_recv.c b/drivers/staging/rtl8723au/hal/rtl8723au_recv.c
index 6075b6d..901e1d4 100644
--- a/drivers/staging/rtl8723au/hal/rtl8723au_recv.c
+++ b/drivers/staging/rtl8723au/hal/rtl8723au_recv.c
@@ -26,7 +26,7 @@ 
 int rtl8723au_init_recv_priv(struct rtw_adapter *padapter)
 {
 	struct recv_priv *precvpriv = &padapter->recvpriv;
-	int i, size, res = _SUCCESS;
+	int i, size, res = 0;
 	struct recv_buf *precvbuf;
 	unsigned long tmpaddr;
 	unsigned long alignment;
@@ -46,7 +46,7 @@  int rtl8723au_init_recv_priv(struct rtw_adapter *padapter)
 	size = NR_RECVBUFF * sizeof(struct recv_buf);
 	precvpriv->precv_buf = kzalloc(size, GFP_KERNEL);
 	if (!precvpriv->precv_buf) {
-		res = _FAIL;
+		res = -ENOMEM;
 		RT_TRACE(_module_rtl871x_recv_c_, _drv_err_,
 			 ("alloc recv_buf fail!\n"));
 		goto exit;