Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64332
b: refs/heads/master
c: 2b06197
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Ossman committed Aug 23, 2007
1 parent ef0c4e0 commit 015ff41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be760a9de881d84994403bb93177bcb95319c4cb
refs/heads/master: 2b061973404802fb87db93175b856ee0dfbe38e4
4 changes: 2 additions & 2 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ static void sdhci_finish_data(struct sdhci_host *host)
/*
* Controller doesn't count down when in single block mode.
*/
if ((data->blocks == 1) && (data->error == MMC_ERR_NONE))
blocks = 0;
if (data->blocks == 1)
blocks = (data->error == MMC_ERR_NONE) ? 0 : 1;
else
blocks = readw(host->ioaddr + SDHCI_BLOCK_COUNT);
data->bytes_xfered = data->blksz * (data->blocks - blocks);
Expand Down

0 comments on commit 015ff41

Please sign in to comment.