Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9720aef2 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarBorislav Petkov <petkovbb@gmail.com>
Acked-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 53d6979a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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,