staging: rtl8192e: Remove unused variable PwrDomainProtect
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 18 Jan 2023 19:59:52 +0000 (20:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:24:21 +0000 (14:24 +0100)
PwrDomainProtect is initialized and then never evaluated. Remove resulting
dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/769f4d3337872d29d8fc5e31613aac52b6bae95b.1674071236.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index fe985f4b8dbb014034b9aecf969ba2c7a3f3e191..227c13d552fc5d82090418998075a17a6c1cd17b 100644 (file)
@@ -2027,8 +2027,6 @@ rtl92e_init_variables(struct net_device  *dev)
                            IMR_RDU | IMR_RXFOVW | IMR_TXFOVW |
                            IMR_BcnInt | IMR_TBDOK | IMR_TBDER);
 
-       priv->PwrDomainProtect = false;
-
        priv->bfirst_after_down = false;
 }
 
index 626a2bc48969535e3aec8ea381696cb7ccf101a5..e90cc61b38178297d8758cb6ac964e07b68d09d3 100644 (file)
@@ -526,7 +526,6 @@ struct r8192_priv {
 
        bool            chan_forced;
 
-       u8              PwrDomainProtect;
        u8              H2CTxCmdSeq;
 };