Search Linux Wireless

Re: [PATCH] wifi: brcmsmac: simplify wlc_phy_rxcal_radio_setup_nphy()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/29/2024 12:49 PM, Dmitry Antipov wrote:
Since 'tx_rx_cal_radio_saveregs[]' of 'struct brcms_phy' is 'u16',
'pi->tx_rx_cal_radio_saveregs[2] & 0xF0) >> 8' is always zero, so
a few duplicated snippets in 'wlc_phy_rxcal_radio_setup_nphy()'
may be reduced to compile-time constant (in fact, the same thing is
actually done by both gcc and clang I've tried). Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Thanks, Dmitry

This was already reported earlier bij Colin (Ian) King. Can you agree to add a Reported-by: tag?

As for the change it is true that it boils down to a constant, but I doubt is that would be the intended behavior. I have to consult my co-workers in radio/phy team.

Regards,
Arend

Signed-off-by: Dmitry Antipov <dmantipov@xxxxxxxxx>
---
  .../broadcom/brcm80211/brcmsmac/phy/phy_n.c   | 44 ++-----------------
  1 file changed, 4 insertions(+), 40 deletions(-)




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux