diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-17 16:23:07 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-18 08:36:58 -0600 |
commit | 07d4b02d5487d3b6def678c98b4182606c3630d1 (patch) | |
tree | 6c9b2af35a648c132f1eb811d72164b1a2431304 /drivers/ide | |
parent | 6d2cf6f2b446c4ace6f57402713ddbc09b11b0a9 (diff) | |
download | linux-07d4b02d5487d3b6def678c98b4182606c3630d1.tar.gz linux-07d4b02d5487d3b6def678c98b4182606c3630d1.tar.bz2 linux-07d4b02d5487d3b6def678c98b4182606c3630d1.zip |
ide-floppy: Use blk_rq_is_scsi()
This patch does not change any functionality.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 627b1f62a749..3ddd88219906 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c @@ -72,7 +72,7 @@ static int ide_floppy_callback(ide_drive_t *drive, int dsc) drive->failed_pc = NULL; if (pc->c[0] == GPCMD_READ_10 || pc->c[0] == GPCMD_WRITE_10 || - (req_op(rq) == REQ_OP_SCSI_IN || req_op(rq) == REQ_OP_SCSI_OUT)) + blk_rq_is_scsi(rq)) uptodate = 1; /* FIXME */ else if (pc->c[0] == GPCMD_REQUEST_SENSE) { |