From: Dan Carpenter <dan.carpenter@oracle.com>
To: Arend van Spriel <arend@broadcom.com>
Cc: Chaehyun Lim <chaehyun.lim@gmail.com>,
gregkh@linuxfoundation.org, 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 08/12] staging: wilc1000: use s8 instead of int8_t
Date: Fri, 2 Oct 2015 14:37:01 +0300 [thread overview]
Message-ID: <20151002113701.GN7289@mwanda> (raw)
In-Reply-To: <560E3628.4000105@broadcom.com>
On Fri, Oct 02, 2015 at 09:45:44AM +0200, Arend van Spriel wrote:
> 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.
That doesn't work, but you're right that the function is poorly named.
It could be renamed to get_ap_index_or_something() in a later patch.
Returning directly is also a good idea.
regards,
dan carpenter
next prev parent reply other threads:[~2015-10-02 11:37 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
2015-10-02 7:49 ` Arend van Spriel
2015-10-02 11:37 ` Dan Carpenter [this message]
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=20151002113701.GN7289@mwanda \
--to=dan.carpenter@oracle.com \
--cc=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).