[OPW,kernel,v3,24/28] staging: rtl8723au: os_dep: recv_linux.c: Replace non-standard return values
diff mbox

Message ID 1414668396-4093-25-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/os_dep/recv_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/drivers/staging/rtl8723au/os_dep/recv_linux.c b/drivers/staging/rtl8723au/os_dep/recv_linux.c
index bcd970b..e60d9db 100644
--- a/drivers/staging/rtl8723au/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8723au/os_dep/recv_linux.c
@@ -149,12 +149,12 @@  _recv_indicatepkt_end:
 
 	RT_TRACE(_module_recv_osdep_c_, _drv_info_,
 		 ("\n rtw_recv_indicatepkt23a :after netif_rx!!!!\n"));
-	return _SUCCESS;
+	return 0;
 
 _recv_indicatepkt_drop:
 
 	 rtw_free_recvframe23a(precv_frame);
-	 return _FAIL;
+	 return -EINVAL;
 }
 
 void rtw_init_recv_timer23a(struct recv_reorder_ctrl *preorder_ctrl)