projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae3567
)
staging: rtl8192e: Remove unused variable int_log
author
Philipp Hortmann
<philipp.g.hortmann@gmail.com>
Tue, 22 Nov 2022 22:46:29 +0000
(23:46 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:25:00 +0000
(13:25 +0100)
int_log is initialized and incremented but never evaluated. Remove
resulting dead code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link:
https://lore.kernel.org/r/e2edcde052cc3c47e6e6b94d09e460b8cf6a49a8.1669156825.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
patch
|
blob
|
blame
|
history
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
patch
|
blob
|
blame
|
history
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
index 53fd79a281892dd4ebf33f3cf9b10085dffec9c4..ac192254a4bb363b05977b50a4d70d3f75d5d91c 100644
(file)
--- a/
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
+++ b/
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
@@
-154,21
+154,6
@@
struct tx_fwinfo_8190pci {
};
-struct log_int_8190 {
- u32 nIMR_COMDOK;
- u32 nIMR_MGNTDOK;
- u32 nIMR_HIGH;
- u32 nIMR_VODOK;
- u32 nIMR_VIDOK;
- u32 nIMR_BEDOK;
- u32 nIMR_BKDOK;
- u32 nIMR_ROK;
- u32 nIMR_RCOK;
- u32 nIMR_TBDOK;
- u32 nIMR_BDOK;
- u32 nIMR_RXFOVW;
-};
-
struct phy_ofdm_rx_status_rxsc_sgien_exintfflag {
u8 reserved:4;
u8 rxsc:2;
diff --git
a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index 7b78bdfadc8da9c97b276c1ca2dc4b3d4759b02e..f8fbe78ccad9fe7769dad534cec3efcd4056002a 100644
(file)
--- a/
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@
-866,8
+866,6
@@
static void _rtl92e_init_priv_variable(struct net_device *dev)
priv->rst_progress = RESET_TYPE_NORESET;
priv->force_reset = false;
memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
-
- memset(&priv->int_log, 0, sizeof(struct log_int_8190));
priv->rx_ctr = 0;
priv->rtllib->wx_set_enc = 0;
priv->hw_radio_off = false;
@@
-2185,7
+2183,6
@@
static irqreturn_t _rtl92e_irq(int irq, void *netdev)
if (inta & IMR_ROK) {
priv->stats.rxint++;
- priv->int_log.nIMR_ROK++;
tasklet_schedule(&priv->irq_rx_tasklet);
}
diff --git
a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
index ca2e685148d4d5a5e109defd9f5a79c605323af4..cceb77492363ae93941ab2309dfe2035b44d1f89 100644
(file)
--- a/
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
+++ b/
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
@@
-317,8
+317,6
@@
struct r8192_priv {
struct work_struct reset_wq;
- struct log_int_8190 int_log;
-
enum rt_customer_id CustomerID;