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

Commit 3524b5d1 authored by Viresh Kumar's avatar Viresh Kumar Committed by Chris Ball
Browse files

mmc: sdhci-spear: No need to check 'pdev == NULL' in probe



pdev is guaranteed to be valid in probe. And so check for non-NULL is
not required. Remove it.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@st.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 0e9f480b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -75,8 +75,6 @@ static int __devinit sdhci_probe(struct platform_device *pdev)
	struct spear_sdhci *sdhci;
	int ret;

	BUG_ON(pdev == NULL);

	iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!iomem) {
		ret = -ENOMEM;