summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-06-30 11:22:34 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-02 19:02:02 +0200
commit4cca56c50427eecfa2428cdee722848cd82f443c (patch)
tree712c56aaf853550628a6fee7a3f4694f5dadeb8b /drivers
parent[MMC] sdhci: force DMA on some controllers (diff)
downloadlinux-4cca56c50427eecfa2428cdee722848cd82f443c.tar.xz
linux-4cca56c50427eecfa2428cdee722848cd82f443c.zip
[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')
-rw-r--r--drivers/mmc/sdhci.c4
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)
"though there were blocks left. Please report this "
"to " BUGMAIL ".\n", mmc_hostname(host->mmc));
data->error = MMC_ERR_FAILED;
- }
-
- if (host->size != 0) {
+ } else if (host->size != 0) {
printk(KERN_ERR "%s: %d bytes were left untransferred. "
"Please report this to " BUGMAIL ".\n",
mmc_hostname(host->mmc), host->size);