[OPW,kernel,v2,4/5] staging: rtl8723au: Change function return type
diff mbox

Message ID 1414607161-591-5-git-send-email-roberta.dobrescu@gmail.com
State New, archived
Headers show

Commit Message

Roberta Dobrescu Oct. 29, 2014, 6:26 p.m. UTC
This patch changes the return type of rtw_init_evt_priv23a from u32
to int, since this function returns 0 in case of success or an
appropriate negative value in case of failure.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
 drivers/staging/rtl8723au/core/rtw_cmd.c    | 2 +-
 drivers/staging/rtl8723au/include/rtw_cmd.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff mbox

diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/rtl8723au/core/rtw_cmd.c
index ca8effc..85dd531 100644
--- a/drivers/staging/rtl8723au/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723au/core/rtw_cmd.c
@@ -185,7 +185,7 @@  int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv)
 static void rtw_irq_work(struct work_struct *work);
-u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
+int rtw_init_evt_priv23a(struct evt_priv *pevtpriv)
 	pevtpriv->wq = alloc_workqueue("rtl8723au_evt", 0, 1);
diff --git a/drivers/staging/rtl8723au/include/rtw_cmd.h b/drivers/staging/rtl8723au/include/rtw_cmd.h
index 8ffe5de..f948037 100644
--- a/drivers/staging/rtl8723au/include/rtw_cmd.h
+++ b/drivers/staging/rtl8723au/include/rtw_cmd.h
@@ -98,7 +98,7 @@  int rtw_cmd_thread23a(void *context);
 int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv);
-u32 rtw_init_evt_priv23a (struct evt_priv *pevtpriv);
+int rtw_init_evt_priv23a(struct evt_priv *pevtpriv);
 void rtw_free_evt_priv23a (struct evt_priv *pevtpriv);
 void rtw_cmd_clr_isr23a(struct cmd_priv *pcmdpriv);
 void rtw_evt_notify_isr(struct evt_priv *pevtpriv);