From: Viresh Kumar Date: Tue, 27 Mar 2012 03:10:34 +0000 (+0530) Subject: mmc: sdhci-spear: No need to check 'pdev == NULL' in probe X-Git-Tag: v3.5-rc1~85^2~25 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3524b5d1edbcaf0aae9196ac942d8307624ff3f0;p=~emulex%2Finfiniband.git 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 Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c index 6dfa82e03c7..15191c1d999 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;