diff options
author | Borislav Petkov <petkovbb@gmail.com> | 2009-05-04 03:53:03 -0400 |
---|---|---|
committer | Borislav Petkov <petkovbb@gmail.com> | 2009-05-15 00:44:38 -0400 |
commit | 19f52a784f7ecb5b51cd73cc4514614b600b995a (patch) | |
tree | 3dcc0d4aa96ed7ed65be8936c81458bb0b22f568 /drivers/ide/ide-atapi.c | |
parent | 55ce3a129ea2e8faba4a11bb5dbc305590d1c20c (diff) |
ide-atapi: remove pc->buf
Now after all users of pc->buf have been converted, remove the 64B buffer
embedded in each packet command.
There should be no functional change resulting from this patch.
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index 66ea1e7774fd..3075b0414667 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -74,8 +74,6 @@ EXPORT_SYMBOL_GPL(ide_check_atapi_device); | |||
74 | void ide_init_pc(struct ide_atapi_pc *pc) | 74 | void ide_init_pc(struct ide_atapi_pc *pc) |
75 | { | 75 | { |
76 | memset(pc, 0, sizeof(*pc)); | 76 | memset(pc, 0, sizeof(*pc)); |
77 | pc->buf = pc->pc_buf; | ||
78 | pc->buf_size = IDE_PC_BUFFER_SIZE; | ||
79 | } | 77 | } |
80 | EXPORT_SYMBOL_GPL(ide_init_pc); | 78 | EXPORT_SYMBOL_GPL(ide_init_pc); |
81 | 79 | ||
@@ -254,10 +252,6 @@ void ide_retry_pc(ide_drive_t *drive) | |||
254 | ide_init_pc(pc); | 252 | ide_init_pc(pc); |
255 | memcpy(pc->c, sense_rq->cmd, 12); | 253 | memcpy(pc->c, sense_rq->cmd, 12); |
256 | 254 | ||
257 | /* pointer to mapped address */ | ||
258 | pc->buf = bio_data(sense_rq->bio); | ||
259 | pc->req_xfer = blk_rq_bytes(sense_rq); | ||
260 | |||
261 | if (drive->media == ide_tape) | 255 | if (drive->media == ide_tape) |
262 | set_bit(IDE_AFLAG_IGNORE_DSC, &drive->atapi_flags); | 256 | set_bit(IDE_AFLAG_IGNORE_DSC, &drive->atapi_flags); |
263 | 257 | ||