summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-spear.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-03-27 08:40:34 +0530
committerChris Ball <cjb@laptop.org>2012-05-01 10:30:10 -0400
commit3524b5d1edbcaf0aae9196ac942d8307624ff3f0 (patch)
tree88ba1cef73177b8a1a1eb7766fb6a8846487c634 /drivers/mmc/host/sdhci-spear.c
parent0e9f480bb553d39ee06ccd45639ba7a5446a7b81 (diff)
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>
Diffstat (limited to 'drivers/mmc/host/sdhci-spear.c')
-rw-r--r--drivers/mmc/host/sdhci-spear.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c
index 6dfa82e03c7..15191c1d999 100644
--- a/drivers/mmc/host/sdhci-spear.c
+++ b/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;