diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2006-06-30 05:22:34 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-07-02 13:02:02 -0400 |
commit | 4cca56c50427eecfa2428cdee722848cd82f443c (patch) | |
tree | 712c56aaf853550628a6fee7a3f4694f5dadeb8b /drivers/mmc | |
parent | 98608076a21914ab12f1c858a0cdf55366260f12 (diff) |
[MMC] sdhci: remove duplicate error message
When there is remaining blocks untransferred, we get two error messages saying
almost the same thing. Make sure at most one is shown.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/sdhci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 16ed2ae929d3..60a40cb0a49a 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c | |||
@@ -470,9 +470,7 @@ static void sdhci_finish_data(struct sdhci_host *host) | |||
470 | "though there were blocks left. Please report this " | 470 | "though there were blocks left. Please report this " |
471 | "to " BUGMAIL ".\n", mmc_hostname(host->mmc)); | 471 | "to " BUGMAIL ".\n", mmc_hostname(host->mmc)); |
472 | data->error = MMC_ERR_FAILED; | 472 | data->error = MMC_ERR_FAILED; |
473 | } | 473 | } else if (host->size != 0) { |
474 | |||
475 | if (host->size != 0) { | ||
476 | printk(KERN_ERR "%s: %d bytes were left untransferred. " | 474 | printk(KERN_ERR "%s: %d bytes were left untransferred. " |
477 | "Please report this to " BUGMAIL ".\n", | 475 | "Please report this to " BUGMAIL ".\n", |
478 | mmc_hostname(host->mmc), host->size); | 476 | mmc_hostname(host->mmc), host->size); |