mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: Erick Karanja <karanja99erick@gmail.com>
Cc: gregkh@linuxfoundation.org, outreachy@lists.linux.dev,
	 philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/5] staging: rtl8723bs: add spaces between ternary and binary operators
Date: Wed, 2 Apr 2025 00:30:19 +0200 (CEST)	[thread overview]
Message-ID: <ff964c79-6cc2-c0ed-14c8-cec02a3e95fa@inria.fr> (raw)
In-Reply-To: <a147e8cb87627fdc218bdc6df70c980df90fde29.1743524096.git.karanja99erick@gmail.com>



On Tue, 1 Apr 2025, Erick Karanja wrote:

> Fix spacing around binary arithmetic (`+`) and shift (`>>`) operators
> to improve readability and adhere to the Linux kernel coding style.
>
> Reported by checkpatch:
>
> 	CHECK: spaces needed around 'operator'
>
> Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
> ---
>  drivers/staging/rtl8723bs/hal/odm_CfoTracking.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
> index 928c58be6c9b..3b43f8cfd6f4 100644
> --- a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
> +++ b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
> @@ -155,9 +155,9 @@ void ODM_CfoTracking(void *pDM_VOID)
>  		/* 4 1.6 Big jump */
>  		if (pCfoTrack->bAdjust) {
>  			if (CFO_ave > CFO_TH_XTAL_LOW)
> -				Adjust_Xtal = Adjust_Xtal+((CFO_ave-CFO_TH_XTAL_LOW)>>2);
> +				Adjust_Xtal = Adjust_Xtal + ((CFO_ave-CFO_TH_XTAL_LOW) >> 2);

I think you have missed a - here: CFO_ave-CFO_TH_XTAL_LOW.  Likewise
below.

julia

>  			else if (CFO_ave < (-CFO_TH_XTAL_LOW))
> -				Adjust_Xtal = Adjust_Xtal+((CFO_TH_XTAL_LOW-CFO_ave)>>2);
> +				Adjust_Xtal = Adjust_Xtal + ((CFO_TH_XTAL_LOW-CFO_ave) >> 2);
>  		}
>
>  		/* 4 1.7 Adjust Crystal Cap. */
> --
> 2.43.0
>
>
>

  reply	other threads:[~2025-04-01 22:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 16:59 [PATCH v2 0/5] Clean up patches for rtl8723bs driver Erick Karanja
2025-04-01 16:59 ` [PATCH v2 1/5] staging: rtl8723bs: use preferred comparison order Erick Karanja
2025-04-01 22:32   ` Julia Lawall
2025-04-01 16:59 ` [PATCH v2 2/5] staging: rtl8723bs: add spaces between ternary and binary operators Erick Karanja
2025-04-01 22:30   ` Julia Lawall [this message]
2025-04-01 16:59 ` [PATCH v2 3/5] staging: rtl8723bs: Rename variables Erick Karanja
2025-04-01 22:28   ` Julia Lawall
2025-04-01 16:59 ` [PATCH v2 4/5] staging: rtl8723bs: fix check lines should not end with a '(' Erick Karanja
2025-04-01 16:59 ` [PATCH v2 5/5] staging: rtl8723bs: no space before tabs Erick Karanja
2025-04-01 18:18   ` Greg KH
2025-04-01 22:25   ` Julia Lawall

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=ff964c79-6cc2-c0ed-14c8-cec02a3e95fa@inria.fr \
    --to=julia.lawall@inria.fr \
    --cc=gregkh@linuxfoundation.org \
    --cc=karanja99erick@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=outreachy@lists.linux.dev \
    --cc=philipp.g.hortmann@gmail.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

all inboxes | Powered by JetHome®