mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
staging: rtl8192e: Remove unused variables nic_type and RxPower
Remove unused variables nic_type and RxPower as they are set and never evaluated. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/96f8c089aefe6648dad0c68663211b375f016517.1708461563.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
675fca7ff1
commit
ae2c814ec4
@@ -1295,7 +1295,6 @@ static void _rtl92e_query_rxphystatus(
|
||||
pwdb_all = rtl92e_rx_db_to_percent(rx_pwr_all);
|
||||
|
||||
pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all;
|
||||
pstats->RxPower = precord_stats->RxPower = rx_pwr_all;
|
||||
pstats->RecvSignalPower = rx_pwr_all;
|
||||
if (pdrvinfo->RxHT && pdrvinfo->RxRate >= DESC90_RATEMCS8 &&
|
||||
pdrvinfo->RxRate <= DESC90_RATEMCS15)
|
||||
|
||||
@@ -1500,8 +1500,6 @@ static void _rtl92e_rx_normal(struct net_device *dev)
|
||||
};
|
||||
unsigned int count = priv->rxringcount;
|
||||
|
||||
stats.nic_type = NIC_8192E;
|
||||
|
||||
while (count--) {
|
||||
struct rx_desc *pdesc = &priv->rx_ring
|
||||
[priv->rx_idx];
|
||||
|
||||
@@ -474,11 +474,9 @@ struct rtllib_rx_stats {
|
||||
u8 control;
|
||||
u8 mask;
|
||||
u16 len;
|
||||
u8 nic_type;
|
||||
u16 Length;
|
||||
u8 SignalQuality;
|
||||
s32 RecvSignalPower;
|
||||
s8 RxPower;
|
||||
u8 SignalStrength;
|
||||
u16 bHwError:1;
|
||||
u16 bCRC:1;
|
||||
|
||||
Reference in New Issue
Block a user