Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107253
b: refs/heads/master
c: a84756c
h: refs/heads/master
i:
  107251: d664a5d
v: v3
  • Loading branch information
Pierre Ossman committed Aug 1, 2008
1 parent a588964 commit 043c46a
Show file tree
Hide file tree
Showing 2 changed files with 4 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: b7ac2cf1cdf346b34cbc2104d386a9d29d12aa4c
refs/heads/master: a84756c5735f28bf000617f18734a9e94426386a
5 changes: 3 additions & 2 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
{
#ifdef CONFIG_MMC_DEBUG
unsigned int i, sz;
struct scatterlist *sg;
#endif

pr_debug("%s: starting CMD%u arg %08x flags %08x\n",
Expand Down Expand Up @@ -156,8 +157,8 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)

#ifdef CONFIG_MMC_DEBUG
sz = 0;
for (i = 0;i < mrq->data->sg_len;i++)
sz += mrq->data->sg[i].length;
for_each_sg(mrq->data->sg, sg, mrq->data->sg_len, i)
sz += sg->length;
BUG_ON(sz != mrq->data->blocks * mrq->data->blksz);
#endif

Expand Down

0 comments on commit 043c46a

Please sign in to comment.