From: Sanghyeon Lee <sanghae778@gmail.com>
To: gregkh@linuxfoundation.org, karanja99erick@gmail.com
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Sanghyeon Lee <sanghae778@gmail.com>
Subject: [PATCH v2 2/2] staging: rtl8723bs: remove unnecessary else block
Date: Wed, 17 Dec 2025 14:24:44 +0000 [thread overview]
Message-ID: <20251217142444.5530-3-sanghae778@gmail.com> (raw)
In-Reply-To: <20251217142444.5530-1-sanghae778@gmail.com>
This patch fix coding style issue reported by checkpatch.pl in
odm_CfoTracking.c
The change include:
1. Removing an unnecessary else statement after a return, which reduces
indentation and simplifies the code flow.
The change verify clean with checkpatch.pl.
thanks,
Sanghyeon Lee
Signed-off-by: Sanghyeon Lee <sanghae778@gmail.com>
---
drivers/staging/rtl8723bs/hal/odm_CfoTracking.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
index 0b70509f553b..166af5f6c9e0 100644
--- a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
+++ b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
@@ -132,8 +132,9 @@ void ODM_CfoTracking(void *pDM_VOID)
) {
pCfoTrack->largeCFOHit = 1;
return;
- } else
- pCfoTrack->largeCFOHit = 0;
+ }
+
+ pCfoTrack->largeCFOHit = 0;
pCfoTrack->CFO_ave_pre = CFO_ave;
/* 4 1.4 Dynamic Xtal threshold */
--
2.43.0
prev parent reply other threads:[~2025-12-17 14:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-17 14:24 [PATCH v2 0/2] remove unnecessary braces and else block Sanghyeon Lee
2025-12-17 14:24 ` [PATCH v2 1/2] staging: rtl8723bs: remove unnecessary braces Sanghyeon Lee
2025-12-17 14:33 ` Greg KH
2025-12-17 14:24 ` Sanghyeon Lee [this message]
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=20251217142444.5530-3-sanghae778@gmail.com \
--to=sanghae778@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=karanja99erick@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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