From: Arend van Spriel <arend@broadcom.com>
To: Chaehyun Lim <chaehyun.lim@gmail.com>, <gregkh@linuxfoundation.org>
Cc: <johnny.kim@atmel.com>, <rachel.kim@atmel.com>,
<chris.park@atmel.com>, <tony.cho@atmel.com>,
<glen.lee@atmel.com>, <leo.kim@atmel.com>,
<linux-wireless@vger.kernel.org>, <devel@driverdev.osuosl.org>
Subject: Re: [PATCH V2 08/12] staging: wilc1000: use int instead of int8_t
Date: Fri, 2 Oct 2015 10:02:25 +0200 [thread overview]
Message-ID: <560E3A11.2040200@broadcom.com> (raw)
In-Reply-To: <1443771681-15540-8-git-send-email-chaehyun.lim@gmail.com>
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 <dan.carpenter@oracle.com>
> Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
> ---
> 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;
>
>
next prev parent reply other threads:[~2015-10-02 8:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 7:41 [PATCH V2 01/12] staging: wilc1000: remove wilc_platform.h Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 02/12] staging: wilc1000: remove commented codes Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 03/12] staging: wilc1000: remove if defined codes of USE_OLD_SPI_SW Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 04/12] staging: wilc1000: fix indentation level Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 05/12] staging: wilc1000: remove #if 1 and #endif Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 06/12] staging: wilc1000: remove unnecessary comment Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 07/12] staging: wilc1000: use ARRAY_SIZE macro Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 08/12] staging: wilc1000: use int instead of int8_t Chaehyun Lim
2015-10-02 8:02 ` Arend van Spriel [this message]
2015-10-02 9:03 ` Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 09/12] staging: wilc1000: set_channel: remove blank line after open brace Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 10/12] staging: wilc1000: set_channel: fix data type of s32Error Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 11/12] staging: wilc1000: set_channel: rename s32Error Chaehyun Lim
2015-10-02 7:41 ` [PATCH V2 12/12] staging: wilc1000: rename u8CurrChannel Chaehyun Lim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=560E3A11.2040200@broadcom.com \
--to=arend@broadcom.com \
--cc=chaehyun.lim@gmail.com \
--cc=chris.park@atmel.com \
--cc=devel@driverdev.osuosl.org \
--cc=glen.lee@atmel.com \
--cc=gregkh@linuxfoundation.org \
--cc=johnny.kim@atmel.com \
--cc=leo.kim@atmel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=rachel.kim@atmel.com \
--cc=tony.cho@atmel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).