mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: initialize pld_uevent_data variable to zero
Initialize pld_uevent_data variable to zero, as the driver expects zero data if there is no fw down data sent from platform driver. Change-Id: I24c3fa459207d254f7b579a387985eca06466447 CRs-fixed: 2658683
This commit is contained in:
parent
a4a1a9ba38
commit
d1f55ebdbc
6 changed files with 9 additions and 9 deletions
|
|
@ -245,7 +245,7 @@ static int pld_ipci_uevent(struct device *dev,
|
|||
{
|
||||
struct pld_context *pld_context;
|
||||
struct icnss_uevent_fw_down_data *uevent_data = NULL;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
if (!pld_context)
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ static void pld_pcie_notify_handler(struct pci_dev *pdev, int state)
|
|||
static void pld_pcie_uevent(struct pci_dev *pdev, uint32_t status)
|
||||
{
|
||||
struct pld_context *pld_context;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
if (!pld_context)
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ static void pld_pcie_fw_sim_notify_handler(struct pci_dev *pdev, int state)
|
|||
static void pld_pcie_fw_sim_uevent(struct pci_dev *pdev, uint32_t status)
|
||||
{
|
||||
struct pld_context *pld_context;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
if (!pld_context)
|
||||
|
|
@ -485,7 +485,7 @@ static void pld_pcie_fw_sim_notify_handler(struct pci_dev *pdev, int state)
|
|||
static void pld_pcie_fw_sim_uevent(struct pci_dev *pdev, uint32_t status)
|
||||
{
|
||||
struct pld_context *pld_context;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
if (!pld_context)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -338,7 +338,7 @@ static void pld_sdio_uevent(struct sdio_func *sdio_func, uint32_t status)
|
|||
{
|
||||
struct pld_context *pld_context;
|
||||
struct device *dev = &sdio_func->dev;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -229,7 +229,7 @@ static int pld_snoc_fw_sim_uevent(struct device *dev,
|
|||
{
|
||||
struct pld_context *pld_context;
|
||||
struct icnss_uevent_fw_down_data *uevent_data = NULL;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
if (!pld_context)
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ static void pld_usb_shutdown(struct usb_interface *interface)
|
|||
static void pld_usb_uevent(struct usb_interface *interface, uint32_t status)
|
||||
{
|
||||
struct pld_context *pld_context;
|
||||
struct pld_uevent_data data;
|
||||
struct pld_uevent_data data = {0};
|
||||
struct usb_device *pdev = interface_to_usbdev(interface);
|
||||
|
||||
pld_context = pld_get_global_context();
|
||||
|
|
|
|||
Loading…
Reference in a new issue