summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-spear.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-03-27 05:10:34 +0200
committerChris Ball <cjb@laptop.org>2012-05-01 16:30:10 +0200
commit3524b5d1edbcaf0aae9196ac942d8307624ff3f0 (patch)
tree88ba1cef73177b8a1a1eb7766fb6a8846487c634 /drivers/mmc/host/sdhci-spear.c
parentmmc: cd-gpio: protect against NULL context in mmc_cd_gpio_free() (diff)
downloadlinux-3524b5d1edbcaf0aae9196ac942d8307624ff3f0.tar.xz
linux-3524b5d1edbcaf0aae9196ac942d8307624ff3f0.zip
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 6dfa82e03c7e..15191c1d999a 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;