Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce2dc27f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: Fix a bug in NULL pointer checking"

parents 40a8cc53 0c5cffa6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ static void cnss_pci_event_cb(struct msm_pcie_notify *notify)
	struct pci_dev *pci_dev;
	struct cnss_pci_data *pci_priv;

	if (notify == NULL || notify->user)
	if (!notify)
		return;

	pci_dev = notify->user;
@@ -276,7 +276,7 @@ static void cnss_pci_event_cb(struct msm_pcie_notify *notify)
		return;

	pci_priv = cnss_get_pci_priv(pci_dev);
	if (pci_priv)
	if (!pci_priv)
		return;

	switch (notify->event) {