From: Tejun Heo Date: Thu, 7 May 2009 13:24:36 +0000 (+0900) Subject: ide-tape: don't initialize rq->sector for rw requests X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~11440^2~90 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9720aef2539c10e3a872e9a92beec225030d99db;p=mirror_ubuntu-zesty-kernel.git ide-tape: don't initialize rq->sector for rw requests rq->sector is set to the tape->first_frame but it's never actually used and not even in the correct unit (512 byte sectors). Don't set it. [ Impact: cleanup ] Signed-off-by: Tejun Heo Acked-by: Borislav Petkov Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Jens Axboe --- diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 8dfc68892d6a..7149224d1fe9 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -892,7 +892,6 @@ static int idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int size) rq->cmd_type = REQ_TYPE_SPECIAL; rq->cmd[13] = cmd; rq->rq_disk = tape->disk; - rq->sector = tape->first_frame; if (size) { ret = blk_rq_map_kern(drive->queue, rq, tape->buf, size,