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

Commit 6a1f6c0e authored by Ajay Prathi's avatar Ajay Prathi
Browse files

msm: pcie: Use list_empty check



Existing code incorrectly uses NULL check for a list_head,
use list_empty instead.

Change-Id: Ib497642a1d1f90379b1cb54b5161d25cb17dedbb
Signed-off-by: default avatarAjay Prathi <aprathi@codeaurora.org>
parent e34517a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5545,7 +5545,7 @@ static void msm_pcie_config_link_pm_rc(struct msm_pcie_dev_t *dev,
{
	bool child_l0s_enable = 0, child_l1_enable = 0, child_l1ss_enable = 0;

	if (!pdev->subordinate || !(&pdev->subordinate->devices)) {
	if (!pdev->subordinate || list_empty(&pdev->subordinate->devices)) {
		PCIE_DBG(dev,
			"PCIe: RC%d: no device connected to root complex\n",
			dev->rc_idx);