From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org, outreachy@lists.linux.dev
Cc: philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org,
Erick Karanja <karanja99erick@gmail.com>
Subject: [PATCH 3/5] staging: rtl8723bs: add spaces between ternary and binary operators
Date: Mon, 31 Mar 2025 18:37:56 +0300 [thread overview]
Message-ID: <84e4e73f3224ee37d5d203c9b7adbcb43f4fc144.1743434232.git.karanja99erick@gmail.com> (raw)
In-Reply-To: <cover.1743434232.git.karanja99erick@gmail.com>
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);
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
next prev parent reply other threads:[~2025-03-31 15:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-31 15:37 [PATCH 0/5] Clean up patches for rtl8723bs driver Erick Karanja
2025-03-31 15:37 ` [PATCH 1/5] staging: rtl8723bs: use preferred comparison order Erick Karanja
2025-03-31 15:37 ` [PATCH 2/5] staging: rtl8723bs: replace kmalloc + memset with kzalloc Erick Karanja
2025-03-31 19:05 ` Julia Lawall
2025-03-31 15:37 ` Erick Karanja [this message]
2025-03-31 15:37 ` [PATCH 4/5] staging: rtl8723bs: no space before tabs Erick Karanja
2025-03-31 16:01 ` Julia Lawall
2025-03-31 15:37 ` [PATCH 5/5] staging: rtl8723bs: Rename variables Erick Karanja
2025-03-31 19:08 ` 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=84e4e73f3224ee37d5d203c9b7adbcb43f4fc144.1743434232.git.karanja99erick@gmail.com \
--to=karanja99erick@gmail.com \
--cc=gregkh@linuxfoundation.org \
--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®