Skip to content

Commit

Permalink
mmc: sdhci-spear: No need to check 'pdev == NULL' in probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Chris Ball committed May 1, 2012
1 parent 0e9f480 commit 3524b5d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mmc/host/sdhci-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3524b5d

Please sign in to comment.