提交 8630e3ad 编写于 作者: M Michal Kazior 提交者: Kalle Valo

ath10k: remove meaningless check

The check doesn't make much sense. If the address
were to be 0x0000 the check would fail. In this
case a 0 address isn't wrong.
Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 1d349021
...@@ -2307,9 +2307,6 @@ static void ath10k_pci_device_reset(struct ath10k *ar) ...@@ -2307,9 +2307,6 @@ static void ath10k_pci_device_reset(struct ath10k *ar)
int i; int i;
u32 val; u32 val;
if (!SOC_GLOBAL_RESET_ADDRESS)
return;
ath10k_pci_reg_write32(ar, PCIE_SOC_WAKE_ADDRESS, ath10k_pci_reg_write32(ar, PCIE_SOC_WAKE_ADDRESS,
PCIE_SOC_WAKE_V_MASK); PCIE_SOC_WAKE_V_MASK);
for (i = 0; i < ATH_PCI_RESET_WAIT_MAX; i++) { for (i = 0; i < ATH_PCI_RESET_WAIT_MAX; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册