From: Jes Sorensen <jes.sorensen@gmail.com>
To: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>,
outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8192u: Replace TRUE with true
Date: Wed, 04 Mar 2015 20:38:47 -0500 [thread overview]
Message-ID: <54F7B3A7.2010402@gmail.com> (raw)
In-Reply-To: <1425513106-22425-1-git-send-email-ksenija.stanojevic@gmail.com>
On 03/04/15 18:51, Ksenija Stanojevic wrote:
> This patch replaces TRUE by true, since Linux kernel has already a
> boolean type, bool, defined in linux/stddef.h
>
> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> ---
> drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Getting rid of their ugly TRUE is a good thing - however it would be
good to do the entire driver in one patch, and also get rid of the
#define of TRUE at the same time.
Cheers,
Jes
> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c
> index 96ab304..9f68c65 100644
> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c
> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c
> @@ -553,16 +553,16 @@ static void ieee80211_txrate_selectmode(struct ieee80211_device *ieee,
> #ifdef TO_DO_LIST
> if(!IsDataFrame(pFrame))
> {
> - pTcb->bTxDisableRateFallBack = TRUE;
> - pTcb->bTxUseDriverAssingedRate = TRUE;
> + pTcb->bTxDisableRateFallBack = true;
> + pTcb->bTxUseDriverAssingedRate = true;
> pTcb->RATRIndex = 7;
> return;
> }
>
> if(pMgntInfo->ForcedDataRate!= 0)
> {
> - pTcb->bTxDisableRateFallBack = TRUE;
> - pTcb->bTxUseDriverAssingedRate = TRUE;
> + pTcb->bTxDisableRateFallBack = true;
> + pTcb->bTxUseDriverAssingedRate = true;
> return;
> }
> #endif
>
next prev parent reply other threads:[~2015-03-05 1:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 23:51 [PATCH] Staging: rtl8192u: Replace TRUE with true Ksenija Stanojevic
2015-03-05 1:38 ` Jes Sorensen [this message]
2015-03-05 16:08 ` [Outreachy kernel] " Ksenija Stanojević
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=54F7B3A7.2010402@gmail.com \
--to=jes.sorensen@gmail.com \
--cc=ksenija.stanojevic@gmail.com \
--cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.