]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8188eu: remove redundant assignment to rtstatus
authorColin Ian King <colin.king@canonical.com>
Fri, 26 Jul 2019 12:48:03 +0000 (13:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Jul 2019 07:54:48 +0000 (09:54 +0200)
Variable rtstatus is initialized to a value that is never read and it
is re-assigned later. The initialization is redundant and can be
removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190726124803.11349-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rf_cfg.c

index 739e62dc60e36525f734d018f66356c2ea3305ab..47b1bf5a6143c8c970ec23f4dd8ab06e9ef92017 100644 (file)
@@ -222,7 +222,7 @@ bool rtl88eu_phy_rf_config(struct adapter *adapt)
 {
        struct hal_data_8188e *hal_data = adapt->HalData;
        u32 u4val = 0;
-       bool rtstatus = true;
+       bool rtstatus;
        struct bb_reg_def *pphyreg;
 
        pphyreg = &hal_data->PHYRegDef[RF90_PATH_A];