diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-03-26 23:10:34 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-05-01 10:30:10 -0400 |
commit | 3524b5d1edbcaf0aae9196ac942d8307624ff3f0 (patch) | |
tree | 88ba1cef73177b8a1a1eb7766fb6a8846487c634 | |
parent | 0e9f480bb553d39ee06ccd45639ba7a5446a7b81 (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>
-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 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) | |||
75 | struct spear_sdhci *sdhci; | 75 | struct spear_sdhci *sdhci; |
76 | int ret; | 76 | int ret; |
77 | 77 | ||
78 | BUG_ON(pdev == NULL); | ||
79 | |||
80 | iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 78 | iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
81 | if (!iomem) { | 79 | if (!iomem) { |
82 | ret = -ENOMEM; | 80 | ret = -ENOMEM; |