public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH v4 0/3] staging: rtl8723bs: cleanup booleans and style
@ 2026-04-05 16:01 Andrei Khomenkov
  2026-04-05 16:01 ` [PATCH v4 1/3] staging: rtl8723bs: core: " Andrei Khomenkov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrei Khomenkov @ 2026-04-05 16:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Ethan Tidmore, Dan Carpenter, linux-staging

This series of patches cleans up the rtl8723bs driver code to improve
readability and alignment with the Linux kernel coding style. The
changes affect if-statements and while-loops, including:
 - Simplifying boolean comparisons by removing redundant ' == true',
   ' != true', and ' == false'.
 - Adding spaces around bitwise operators.
 - Removing redundant parentheses.
 - Wrapping logical operators to the previous line.
 
Changes are limited to 'if' and 'while' statements, where both logic
and style are cleaned up at once. No functional changes are intended.

Link: https://lore.kernel.org/linux-staging/20260402150429.14761-1-khomenkov@mailbox.org

v4:
 - Combined logic and style cleanups into single commits to
   avoid fragmented changes, as suggested by Dan Carpenter.

v3:
 - Split the commits into smaller parts, each focusing on a
   single directory.

v2:
 - Split the single patch into a two-patch series to separate 
   logical changes, as suggested by Luka Gejak.
 - Cleaned up additional boolean comparisons found using
   'git grep'.

Andrei Khomenkov (3):
  staging: rtl8723bs: core: cleanup booleans and style
  staging: rtl8723bs: hal: cleanup booleans and style
  staging: rtl8723bs: os_dep: cleanup booleans and style

 drivers/staging/rtl8723bs/core/rtw_ap.c       |  2 +-
 drivers/staging/rtl8723bs/core/rtw_btcoex.c   |  4 +-
 drivers/staging/rtl8723bs/core/rtw_cmd.c      |  2 +-
 .../staging/rtl8723bs/core/rtw_ieee80211.c    |  2 +-
 .../staging/rtl8723bs/core/rtw_ioctl_set.c    | 54 ++++++------
 drivers/staging/rtl8723bs/core/rtw_mlme.c     | 18 ++--
 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 16 ++--
 drivers/staging/rtl8723bs/core/rtw_recv.c     | 83 +++++++++----------
 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c  |  2 +-
 .../staging/rtl8723bs/core/rtw_wlan_util.c    | 18 ++--
 drivers/staging/rtl8723bs/core/rtw_xmit.c     | 37 +++++----
 drivers/staging/rtl8723bs/hal/hal_btcoex.c    | 10 +--
 drivers/staging/rtl8723bs/hal/hal_com.c       |  4 +-
 .../staging/rtl8723bs/hal/hal_com_phycfg.c    |  4 +-
 drivers/staging/rtl8723bs/hal/hal_intf.c      |  4 +-
 drivers/staging/rtl8723bs/hal/odm.c           | 13 ++-
 .../staging/rtl8723bs/hal/odm_CfoTracking.c   |  2 +-
 drivers/staging/rtl8723bs/hal/odm_DIG.c       | 32 ++++---
 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c  |  2 +-
 drivers/staging/rtl8723bs/hal/rtl8723b_dm.c   | 14 ++--
 .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 13 +--
 .../staging/rtl8723bs/hal/rtl8723bs_recv.c    |  2 +-
 .../staging/rtl8723bs/hal/rtl8723bs_xmit.c    |  8 +-
 drivers/staging/rtl8723bs/hal/sdio_halinit.c  |  6 +-
 .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 55 ++++++------
 .../staging/rtl8723bs/os_dep/sdio_ops_linux.c |  4 +-
 drivers/staging/rtl8723bs/os_dep/xmit_linux.c |  2 +-
 27 files changed, 202 insertions(+), 211 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-06 20:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05 16:01 [PATCH v4 0/3] staging: rtl8723bs: cleanup booleans and style Andrei Khomenkov
2026-04-05 16:01 ` [PATCH v4 1/3] staging: rtl8723bs: core: " Andrei Khomenkov
2026-04-06 20:51   ` Ethan Tidmore
2026-04-05 16:01 ` [PATCH v4 2/3] staging: rtl8723bs: hal: " Andrei Khomenkov
2026-04-05 16:01 ` [PATCH v4 3/3] staging: rtl8723bs: os_dep: " Andrei Khomenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox