linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Remove several variables that are zero from struct r8192_priv
@ 2023-01-20 20:17 Philipp Hortmann
  2023-01-20 20:17 ` [PATCH 1/6] staging: rtl8192e: Combine three loops to one to init tx_pwr_level_ Philipp Hortmann
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Philipp Hortmann @ 2023-01-20 20:17 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-staging, linux-kernel

The arrays EEPROMRfACCKChnl1TxPwLevel, EEPROMRfAOfdmChnlTxPwLevel,
EEPROMRfCCCKChnl1TxPwLevel, EEPROMRfCOfdmChnlTxPwLevel are initialized to
zero and never changed. These arrays are used to initialize other
variables that are then also zero. Remove several variables set to zero
to avoid camelCase and to remove dead code.

Tested with rtl8192e (But most of this code is not executed on my hardware)
Transferred this patch over wlan connection of rtl8192e

Philipp Hortmann (6):
  staging: rtl8192e: Combine three loops to one to init tx_pwr_level_...
  staging: rtl8192e: Init tx_pwr_level_cck_a and friends directly
  staging: rtl8192e: Remove zeroed arrays tx_pwr_level_cck_a and friends
  staging: rtl8192e: Remove ant_pwr_diff which is always zero
  staging: rtl8192e: Remove u4RegValue which is always zero
  staging: rtl8192e: Remove repeated set to zero of powerlevel and
    friend

 .../staging/rtl8192e/rtl8192e/r8192E_dev.c    | 31 -------------------
 .../staging/rtl8192e/rtl8192e/r8192E_phy.c    | 24 ++------------
 drivers/staging/rtl8192e/rtl8192e/rtl_core.h  |  8 -----
 3 files changed, 3 insertions(+), 60 deletions(-)

-- 
2.39.0


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

end of thread, other threads:[~2023-01-20 20:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 20:17 [PATCH 0/6] Remove several variables that are zero from struct r8192_priv Philipp Hortmann
2023-01-20 20:17 ` [PATCH 1/6] staging: rtl8192e: Combine three loops to one to init tx_pwr_level_ Philipp Hortmann
2023-01-20 20:18 ` [PATCH 2/6] staging: rtl8192e: Init tx_pwr_level_cck_a and friends directly Philipp Hortmann
2023-01-20 20:18 ` [PATCH 3/6] staging: rtl8192e: Remove zeroed arrays tx_pwr_level_cck_a and friends Philipp Hortmann
2023-01-20 20:18 ` [PATCH 4/6] staging: rtl8192e: Remove ant_pwr_diff which is always zero Philipp Hortmann
2023-01-20 20:18 ` [PATCH 5/6] staging: rtl8192e: Remove u4RegValue " Philipp Hortmann
2023-01-20 20:18 ` [PATCH 6/6] staging: rtl8192e: Remove repeated set to zero of powerlevel and friend Philipp Hortmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).