aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-05-04 03:53:03 -0400
committerBorislav Petkov <petkovbb@gmail.com>2009-05-15 00:44:38 -0400
commit19f52a784f7ecb5b51cd73cc4514614b600b995a (patch)
tree3dcc0d4aa96ed7ed65be8936c81458bb0b22f568 /drivers/ide/ide-tape.c
parent55ce3a129ea2e8faba4a11bb5dbc305590d1c20c (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-tape.c')
-rw-r--r--drivers/ide/ide-tape.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index ead2734bc710..9ca2665faf33 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -568,9 +568,8 @@ static void ide_tape_create_rw_cmd(idetape_tape_t *tape,
568 ide_init_pc(pc); 568 ide_init_pc(pc);
569 put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]); 569 put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]);
570 pc->c[1] = 1; 570 pc->c[1] = 1;
571 pc->buf = NULL; 571
572 pc->buf_size = blk_rq_bytes(rq); 572 if (blk_rq_bytes(rq) == tape->buffer_size)
573 if (pc->buf_size == tape->buffer_size)
574 pc->flags |= PC_FLAG_DMA_OK; 573 pc->flags |= PC_FLAG_DMA_OK;
575 574
576 if (opcode == READ_6) 575 if (opcode == READ_6)
@@ -1608,8 +1607,6 @@ static void idetape_get_inquiry_results(ide_drive_t *drive)
1608 char fw_rev[4], vendor_id[8], product_id[16]; 1607 char fw_rev[4], vendor_id[8], product_id[16];
1609 1608
1610 idetape_create_inquiry_cmd(&pc); 1609 idetape_create_inquiry_cmd(&pc);
1611 pc.buf_size = sizeof(pc_buf);
1612
1613 if (ide_queue_pc_tail(drive, tape->disk, &pc, pc_buf, pc.req_xfer)) { 1610 if (ide_queue_pc_tail(drive, tape->disk, &pc, pc_buf, pc.req_xfer)) {
1614 printk(KERN_ERR "ide-tape: %s: can't get INQUIRY results\n", 1611 printk(KERN_ERR "ide-tape: %s: can't get INQUIRY results\n",
1615 tape->name); 1612 tape->name);