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:
@@ -740,7 +740,7 @@ static int ath10k_ahb_probe(struct platform_device *pdev)
|
||||
enum ath10k_hw_rev hw_rev;
|
||||
size_t size;
|
||||
int ret;
|
||||
struct ath10k_bus_params bus_params;
|
||||
struct ath10k_bus_params bus_params = {};
|
||||
|
||||
of_id = of_match_device(ath10k_ahb_of_match, &pdev->dev);
|
||||
if (!of_id) {
|
||||
|
Reference in New Issue
Block a user