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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user