浏览代码

qcacld-3.0: Correct NULL check when access function pointer

In function pld_pcie_uevent, pld_context->ops->uevent NULL check logic
is wrong so correct it.

Change-Id: I1bf9d8c8f5318b476761a458f5475107007dfa01
CRs-Fixed: 2058248
Will Huang 7 年之前
父节点
当前提交
bdd28711e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/pld/src/pld_pcie.c

+ 1 - 1
core/pld/src/pld_pcie.c

@@ -201,7 +201,7 @@ static void pld_pcie_uevent(struct pci_dev *pdev, uint32_t status)
 
 	data.uevent = status;
 
-	if (!pld_context->ops->uevent)
+	if (pld_context->ops->uevent)
 		pld_context->ops->uevent(&pdev->dev, &data);
 
 	return;