summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/usb.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2019-04-19 10:28:52 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-04-23 16:23:54 +0300
commit6d084ac27ab4b2cc814b142459393e73c3cb47b9 (patch)
tree3dc7cfbc9ca6a3de7b291cdc869b6198ba274e71 /drivers/net/wireless/ath/ath10k/usb.c
parente2a6b711282a371c5153239e0468a48254f17ca6 (diff)
downloadlinux-6d084ac27ab4b2cc814b142459393e73c3cb47b9.tar.xz
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/usb.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/usb.c b/drivers/net/wireless/ath/ath10k/usb.c
index 970cf69ac35f..2fb0fb40e86d 100644
--- a/drivers/net/wireless/ath/ath10k/usb.c
+++ b/drivers/net/wireless/ath/ath10k/usb.c
@@ -973,7 +973,7 @@ static int ath10k_usb_probe(struct usb_interface *interface,
struct usb_device *dev = interface_to_usbdev(interface);
int ret, vendor_id, product_id;
enum ath10k_hw_rev hw_rev;
- struct ath10k_bus_params bus_params;
+ struct ath10k_bus_params bus_params = {};
/* Assumption: All USB based chipsets (so far) are QCA9377 based.
* If there will be newer chipsets that does not use the hw reg