summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-23 11:20:01 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-25 13:11:33 +0100
commit650655d3c8955aaeb220601e903dcfbcbf650d08 (patch)
tree8408c3ad0d2d7ff62c325f8596b25f5beaeed4eb /drivers/staging/rtl8188eu
parentdbff176ac7aaf6085f8f5ac8a4bdea3e15e069b6 (diff)
downloadtalos-obmc-linux-650655d3c8955aaeb220601e903dcfbcbf650d08.tar.gz
talos-obmc-linux-650655d3c8955aaeb220601e903dcfbcbf650d08.zip
staging: rtl8188eu: remove redundant initialization of 'pwrcfgcmd'
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>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/hal/pwrseqcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/hal/pwrseqcmd.c b/drivers/staging/rtl8188eu/hal/pwrseqcmd.c
index 2867864bbfbe..e6867eea3530 100644
--- a/drivers/staging/rtl8188eu/hal/pwrseqcmd.c
+++ b/drivers/staging/rtl8188eu/hal/pwrseqcmd.c
@@ -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;
OpenPOWER on IntegriCloud