Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
ae2c814e 675fca7f

-5
-1
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
··· 1295 1295 pwdb_all = rtl92e_rx_db_to_percent(rx_pwr_all); 1296 1296 1297 1297 pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all; 1298 - pstats->RxPower = precord_stats->RxPower = rx_pwr_all; 1299 1298 pstats->RecvSignalPower = rx_pwr_all; 1300 1299 if (pdrvinfo->RxHT && pdrvinfo->RxRate >= DESC90_RATEMCS8 && 1301 1300 pdrvinfo->RxRate <= DESC90_RATEMCS15)
-2
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
··· 1500 1500 }; 1501 1501 unsigned int count = priv->rxringcount; 1502 1502 1503 - stats.nic_type = NIC_8192E; 1504 - 1505 1503 while (count--) { 1506 1504 struct rx_desc *pdesc = &priv->rx_ring 1507 1505 [priv->rx_idx];
-2
drivers/staging/rtl8192e/rtllib.h
··· 474 474 u8 control; 475 475 u8 mask; 476 476 u16 len; 477 - u8 nic_type; 478 477 u16 Length; 479 478 u8 SignalQuality; 480 479 s32 RecvSignalPower; 481 - s8 RxPower; 482 480 u8 SignalStrength; 483 481 u16 bHwError:1; 484 482 u16 bCRC:1;