diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-03-27 08:40:34 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-05-01 10:30:10 -0400 |
commit | 3524b5d1edbcaf0aae9196ac942d8307624ff3f0 (patch) | |
tree | 88ba1cef73177b8a1a1eb7766fb6a8846487c634 /drivers/mmc/host/sdhci-spear.c | |
parent | 0e9f480bb553d39ee06ccd45639ba7a5446a7b81 (diff) | |
download | op-kernel-dev-3524b5d1edbcaf0aae9196ac942d8307624ff3f0.zip op-kernel-dev-3524b5d1edbcaf0aae9196ac942d8307624ff3f0.tar.gz |
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.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index 6dfa82e..15191c1 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; |