Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ca581ef authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: fix return type of wilc_listen_state_expired



This patch changes return type of wilc_listen_state_expired from s32 to
int. The result variable gets return value from wilc_mq_send that has
return type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8859fc28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4098,9 +4098,9 @@ s32 wilc_remain_on_channel(struct wilc_vif *vif, u32 u32SessionID,
	return result;
}

s32 wilc_listen_state_expired(struct wilc_vif *vif, u32 u32SessionID)
int wilc_listen_state_expired(struct wilc_vif *vif, u32 u32SessionID)
{
	s32 result = 0;
	int result = 0;
	struct host_if_msg msg;
	struct host_if_drv *hif_drv = vif->hif_drv;

+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ s32 wilc_remain_on_channel(struct wilc_vif *vif, u32 u32SessionID,
			   wilc_remain_on_chan_expired RemainOnChanExpired,
			   wilc_remain_on_chan_ready RemainOnChanReady,
			   void *pvUserArg);
s32 wilc_listen_state_expired(struct wilc_vif *vif, u32 u32SessionID);
int wilc_listen_state_expired(struct wilc_vif *vif, u32 u32SessionID);
int wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg);
int wilc_set_wfi_drv_handler(struct wilc_vif *vif, int index);
int wilc_set_operation_mode(struct wilc_vif *vif, u32 mode);