diff options
author | Kalle Valo <kvalo@codeaurora.org> | 2019-04-19 10:28:52 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-04-23 16:23:54 +0300 |
commit | 6d084ac27ab4b2cc814b142459393e73c3cb47b9 (patch) | |
tree | 3dc7cfbc9ca6a3de7b291cdc869b6198ba274e71 /drivers/net/wireless/ath/ath10k/snoc.c | |
parent | ath10k: htt: don't use txdone_fifo with SDIO (diff) | |
download | linux-dev-6d084ac27ab4b2cc814b142459393e73c3cb47b9.tar.xz linux-dev-6d084ac27ab4b2cc814b142459393e73c3cb47b9.zip |
ath10k: initialise struct ath10k_bus params to zero
This way we don't need to set every variable and give them to default, which is
zero. This is also safer in case we forgot to initalise a new field in some of
the bus modules.
Compile tested only.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/snoc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/snoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index 873cb4ce419b..845914f2eaf8 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -1249,7 +1249,7 @@ out: int ath10k_snoc_fw_indication(struct ath10k *ar, u64 type) { struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); - struct ath10k_bus_params bus_params; + struct ath10k_bus_params bus_params = {}; int ret; if (test_bit(ATH10K_SNOC_FLAG_UNREGISTERING, &ar_snoc->flags)) |