Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41447
b: refs/heads/master
c: 8b7feff
h: refs/heads/master
i:
  41445: e76fd5b
  41443: 55a51b0
  41439: 4bb8223
v: v3
  • Loading branch information
Pierre Ossman committed Dec 1, 2006
1 parent 9646d79 commit 9be948a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 89b4e133afea9fce333054b94d89953583a55c19
refs/heads/master: 8b7feff881b7e9f065ddd718a6841121207c3c19
7 changes: 3 additions & 4 deletions trunk/drivers/mmc/mmc_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
struct mmc_blk_data *md = mq->data;
struct mmc_card *card = md->queue.card;
struct mmc_blk_request brq;
int ret;
int ret = 1;

if (mmc_card_claim_host(card))
goto cmd_err;
goto flush_queue;

do {
struct mmc_command cmd;
Expand Down Expand Up @@ -344,8 +344,6 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
return 1;

cmd_err:
ret = 1;

/*
* If this is an SD card and we're writing, we can first
* mark the known good sectors as ok.
Expand Down Expand Up @@ -379,6 +377,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)

mmc_card_release_host(card);

flush_queue:
spin_lock_irq(&md->lock);
while (ret) {
ret = end_that_request_chunk(req, 0,
Expand Down

0 comments on commit 9be948a

Please sign in to comment.