staging: rtl8188eu: remove redundant initialization of 'pwrcfgcmd'
authorColin Ian King <colin.king@canonical.com>
Tue, 23 Jan 2018 11:20:01 +0000 (11:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2018 12:11:33 +0000 (13:11 +0100)
Structure pwrcfgcmd is being zero'd at initialization however this
value is never read as few statements later in a loop it is being
assigned a new value, hence the initialization is redundant and
can be removed.

Cleans up clang warning:
drivers/staging/rtl8188eu/hal/pwrseqcmd.c:25:20: warning: Value stored
to 'pwrcfgcmd' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/pwrseqcmd.c

index 2867864bbfbe9286c65aa485aa48fe3e1566599d..e6867eea3530d98ce4ff9a16b2a6cac8fd319bfc 100644 (file)
@@ -22,7 +22,7 @@
 u8 rtl88eu_pwrseqcmdparsing(struct adapter *padapter, u8 cut_vers,
                            struct wl_pwr_cfg pwrseqcmd[])
 {
-       struct wl_pwr_cfg pwrcfgcmd = {0};
+       struct wl_pwr_cfg pwrcfgcmd;
        u8 poll_bit = false;
        u32 aryidx = 0;
        u8 value = 0;