Browse Source

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: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Viresh Kumar 13 years ago
parent
commit
3524b5d1ed
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/mmc/host/sdhci-spear.c

+ 0 - 2
drivers/mmc/host/sdhci-spear.c

@@ -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;