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>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [PATCH 08/12] staging: wilc1000: use s8 instead of int8_t
Date: Fri, 2 Oct 2015 09:45:44 +0200 [thread overview]
Message-ID: <560E3628.4000105@broadcom.com> (raw)
In-Reply-To: <1443707039-18433-8-git-send-email-chaehyun.lim@gmail.com>
On 10/01/2015 03:43 PM, Chaehyun Lim wrote:
> This patch replaces int8_t with s8 that is a preferred type.
>
> Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
> ---
> 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..56c97c9 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)
> +s8 is_network_in_shadow(tstrNetworkInfo *pstrNetworkInfo, void *pUserVoid)
It seems to make more sense to use bool type here.
> {
> - int8_t state = -1;
> + s8 state = -1;
You can actually get rid of the state variable. Just replace the
statement 'state = i;' by 'return true;' and replace 'return state;' by
'return false;'.
> 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);
> + s8 ap_found = is_network_in_shadow(pstrNetworkInfo, pUserVoid);
And here as well.
Regards,
Arend
> u32 ap_index = 0;
> u8 rssi_index = 0;
>
>
next prev parent reply other threads:[~2015-10-02 7:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 13:43 [PATCH 01/12] staging: wilc1000: remove wilc_platform.h Chaehyun Lim
2015-10-01 13:43 ` [PATCH 02/12] staging: wilc1000: remove commented codes Chaehyun Lim
2015-10-01 13:43 ` [PATCH 03/12] staging: wilc1000: remove if defined codes of USE_OLD_SPI_SW Chaehyun Lim
2015-10-01 13:43 ` [PATCH 04/12] staging: wilc1000: fix indentation level Chaehyun Lim
2015-10-01 13:43 ` [PATCH 05/12] staging: wilc1000: remove #if 1 and #endif Chaehyun Lim
2015-10-01 13:43 ` [PATCH 06/12] staging: wilc1000: remove unnecessary comment Chaehyun Lim
2015-10-01 13:43 ` [PATCH 07/12] staging: wilc1000: use ARRAY_SIZE macro Chaehyun Lim
2015-10-01 13:43 ` [PATCH 08/12] staging: wilc1000: use s8 instead of int8_t Chaehyun Lim
2015-10-01 15:40 ` Dan Carpenter
2015-10-01 22:56 ` Chaehyun Lim
2015-10-02 6:06 ` Dan Carpenter
2015-10-02 7:02 ` Chaehyun Lim
2015-10-02 7:45 ` Arend van Spriel [this message]
2015-10-02 7:49 ` Arend van Spriel
2015-10-02 11:37 ` Dan Carpenter
2015-10-04 21:06 ` Arend van Spriel
2015-10-01 13:43 ` [PATCH 09/12] staging: wilc1000: set_channel: remove blank line after open brace Chaehyun Lim
2015-10-01 13:43 ` [PATCH 10/12] staging: wilc1000: set_channel: fix data type of s32Error Chaehyun Lim
2015-10-01 13:43 ` [PATCH 11/12] staging: wilc1000: set_channel: rename s32Error Chaehyun Lim
2015-10-01 13:43 ` [PATCH 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=560E3628.4000105@broadcom.com \
--to=arend@broadcom.com \
--cc=chaehyun.lim@gmail.com \
--cc=chris.park@atmel.com \
--cc=dan.carpenter@oracle.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).