diff options
author | Chaehyun Lim | 2015-10-02 09:41:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-10-02 12:05:53 +0200 |
commit | a74cc6b8d8ee405cfef4a26f6c8259f1c1882c66 (patch) | |
tree | 47b3a4b687f4e3f7ca072d02ffa7d30eb8fabc97 /drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | |
parent | staging: wilc1000: use ARRAY_SIZE macro (diff) | |
download | kernel-qcow2-linux-a74cc6b8d8ee405cfef4a26f6c8259f1c1882c66.tar.gz kernel-qcow2-linux-a74cc6b8d8ee405cfef4a26f6c8259f1c1882c66.tar.xz kernel-qcow2-linux-a74cc6b8d8ee405cfef4a26f6c8259f1c1882c66.zip |
staging: wilc1000: use int instead of int8_t
This patch replaces int8_t with int.
The int8_t should be int. It's used as an index into an array
or -1 for not found.
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_cfgoperations.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 25643b02d867..ea24f501cede 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -263,9 +263,9 @@ static void clear_duringIP(unsigned long arg) g_obtainingIP = false; } -int8_t is_network_in_shadow(tstrNetworkInfo *pstrNetworkInfo, void *pUserVoid) +int is_network_in_shadow(tstrNetworkInfo *pstrNetworkInfo, void *pUserVoid) { - int8_t state = -1; + int state = -1; int i; if (u32LastScannedNtwrksCountShadow == 0) { @@ -288,7 +288,7 @@ int8_t is_network_in_shadow(tstrNetworkInfo *pstrNetworkInfo, void *pUserVoid) void add_network_to_shadow(tstrNetworkInfo *pstrNetworkInfo, void *pUserVoid, void *pJoinParams) { - int8_t ap_found = is_network_in_shadow(pstrNetworkInfo, pUserVoid); + int ap_found = is_network_in_shadow(pstrNetworkInfo, pUserVoid); u32 ap_index = 0; u8 rssi_index = 0; |