staging: rtl8192e: remove redundant initialization of variable init_status
authorColin Ian King <colin.king@canonical.com>
Sat, 22 Feb 2020 20:01:05 +0000 (20:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Feb 2020 18:20:49 +0000 (19:20 +0100)
The pointer init_status is being initialized with a value that is never
read, it is being updated later on. 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/20200222200105.201869-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index ce57bf35c3edbe2252f80f84dfd3e7b0f52f51a3..d3664e508cbec020c5861e2669869b737ec37623 100644 (file)
@@ -732,7 +732,7 @@ static int _rtl92e_sta_up(struct net_device *dev, bool is_silent_reset)
        struct r8192_priv *priv = rtllib_priv(dev);
        struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)
                                        (&priv->rtllib->PowerSaveControl);
-       bool init_status = true;
+       bool init_status;
 
        priv->bDriverIsGoingToUnload = false;
        priv->bdisable_nic = false;