Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74924
b: refs/heads/master
c: c86ae7d
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Dec 12, 2007
1 parent 6a3ed48 commit 816febc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 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: 3ab7efe8e2cbcca2d401b43cfcc2fa9a7dac2299
refs/heads/master: c86ae7df90a26708e9e54e3a362046873d874e6c
28 changes: 0 additions & 28 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1650,31 +1650,6 @@ static int cdrom_write_check_ireason(ide_drive_t *drive, int len, int ireason)
return 1;
}

static void post_transform_command(struct request *req)
{
u8 *c = req->cmd;
char *ibuf;

if (!blk_pc_request(req))
return;

if (req->bio)
ibuf = bio_data(req->bio);
else
ibuf = req->data;

if (!ibuf)
return;

/*
* set ansi-revision and response data as atapi
*/
if (c[0] == GPCMD_INQUIRY) {
ibuf[2] |= 2;
ibuf[3] = (ibuf[3] & 0xf0) | 2;
}
}

typedef void (xfer_func_t)(ide_drive_t *, void *, u32);

/*
Expand Down Expand Up @@ -1810,9 +1785,6 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
return ide_started;

end_request:
if (!rq->data_len)
post_transform_command(rq);

spin_lock_irqsave(&ide_lock, flags);
blkdev_dequeue_request(rq);
end_that_request_last(rq, 1);
Expand Down

0 comments on commit 816febc

Please sign in to comment.