mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 10:01:56 +00:00
staging: wilc1000: fix return type of wilc_scan
This patch changes return type of wilc_scan from s32 to int. The result variable gets return value from wilc_mq_send that has data type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
40e05e86d5
commit
03a5d8c085
@ -3672,12 +3672,12 @@ int wilc_get_statistics(struct wilc_vif *vif, struct rf_info *stats)
|
||||
return result;
|
||||
}
|
||||
|
||||
s32 wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
|
||||
int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
|
||||
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
|
||||
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
|
||||
struct hidden_network *pstrHiddenNetwork)
|
||||
{
|
||||
s32 result = 0;
|
||||
int result = 0;
|
||||
struct host_if_msg msg;
|
||||
struct host_if_drv *hif_drv = vif->hif_drv;
|
||||
|
||||
|
@ -335,7 +335,7 @@ int wilc_flush_join_req(struct wilc_vif *vif);
|
||||
int wilc_disconnect(struct wilc_vif *vif, u16 reason_code);
|
||||
int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel);
|
||||
int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level);
|
||||
s32 wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
|
||||
int wilc_scan(struct wilc_vif *vif, u8 u8ScanSource, u8 u8ScanType,
|
||||
u8 *pu8ChnlFreqList, u8 u8ChnlListLen, const u8 *pu8IEs,
|
||||
size_t IEsLen, wilc_scan_result ScanResult, void *pvUserArg,
|
||||
struct hidden_network *pstrHiddenNetwork);
|
||||
|
Loading…
Reference in New Issue
Block a user