projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e9f480
)
mmc: sdhci-spear: No need to check 'pdev == NULL' in probe
author
Viresh Kumar
<viresh.kumar@st.com>
Tue, 27 Mar 2012 03:10:34 +0000
(08:40 +0530)
committer
Chris Ball
<cjb@laptop.org>
Tue, 1 May 2012 14:30:10 +0000
(10:30 -0400)
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>
drivers/mmc/host/sdhci-spear.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/sdhci-spear.c
b/drivers/mmc/host/sdhci-spear.c
index 6dfa82e03c7e4964bff24a7e3fb9eb92468cd0d0..15191c1d999aa091c11b75451d7b8c446b916277 100644
(file)
--- 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;