linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mmc/sdhci-spear: No need to check 'pdev == NULL' in probe
@ 2012-03-27  3:10 Viresh Kumar
  2012-03-27  3:10 ` [PATCH 2/3] mmc/sdhci-spear: Use devm_* derivatives Viresh Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Viresh Kumar @ 2012-03-27  3:10 UTC (permalink / raw)
  To: cjb
  Cc: spear-devel, viresh.linux, linux-mmc, devicetree-discuss, sr,
	Viresh Kumar

pdev is guaranteed to be valid in probe. And so check is not required to check
if it is non-NULL. Remove it.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
---
 drivers/mmc/host/sdhci-spear.c |    2 --
 1 file changed, 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;
-- 
1.7.10.rc2.10.gb47606


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-01 14:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-27  3:10 [PATCH 1/3] mmc/sdhci-spear: No need to check 'pdev == NULL' in probe Viresh Kumar
2012-03-27  3:10 ` [PATCH 2/3] mmc/sdhci-spear: Use devm_* derivatives Viresh Kumar
2012-03-27  3:10 ` [PATCH 3/3] mmc: sdhci-spear: add device tree bindings Viresh Kumar
2012-04-10  9:36 ` [PATCH 1/3] mmc/sdhci-spear: No need to check 'pdev == NULL' in probe Viresh Kumar
2012-05-01  8:48   ` Viresh Kumar
2012-05-01 14:33     ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).