]> git.baikalelectronics.ru Git - kernel.git/commitdiff
staging: rtl8188eu: remove redundant assignment to cond
authorColin Ian King <colin.king@canonical.com>
Sun, 23 Feb 2020 15:18:58 +0000 (15:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Feb 2020 18:20:49 +0000 (19:20 +0100)
Variable cond 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/20200223151858.416499-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rf_cfg.c

index 47b1bf5a6143c8c970ec23f4dd8ab06e9ef92017..004e19301eae6d4a4f7e15c0c48d37b0007848dc 100644 (file)
@@ -15,7 +15,7 @@ static bool check_condition(struct adapter *adapt, const u32  condition)
        u32 _board = odm->BoardType;
        u32 _platform = odm->SupportPlatform;
        u32 _interface = odm->SupportInterface;
-       u32 cond = condition;
+       u32 cond;
 
        if (condition == 0xCDCDCDCD)
                return true;