On 10/02/2015 09:41 AM, Chaehyun Lim wrote:
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.

Please consider using bool instead. See my previous emails.

Regards,
Arend

Suggested-by: Dan Carpenter <[email protected]>
Signed-off-by: Chaehyun Lim <[email protected]>
---
V2: replaces s8 with int suggested by dan.

  drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 
b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index d781003..3c8c2e1 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;



--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to