On Thursday 22 May 2008, Borislav Petkov wrote:
applied with minor fixups (mainly to silence checkpatch.pl, interdiff below)
thanks!
diff -u b/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
--- b/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -954,7 +954,7 @@
static void ide_tape_create_rw_cmd(idetape_tape_t *tape,
struct ide_atapi_pc *pc, unsigned int length,
- struct idetape_bh *bh, int opcode)
+ struct idetape_bh *bh, u8 opcode)
{
idetape_init_pc(pc);
put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]);
@@ -969,14 +969,12 @@
if (opcode == READ_6) {
pc->c[0] = READ_6;
atomic_set(&bh->b_count, 0);
- }
- else if (opcode == WRITE_6) {
+ } else if (opcode == WRITE_6) {
pc->c[0] = WRITE_6;
pc->flags |= PC_FLAG_WRITING;
pc->b_data = bh->b_data;
pc->b_count = atomic_read(&bh->b_count);
- } else
- printk(KERN_ERR "%s: Invalid opcode: 0x%x\n", __func__, opcode);
+ }
}
static ide_startstop_t idetape_do_request(ide_drive_t *drive,
--