From: Bart Van Assche Date: Thu, 17 Aug 2017 23:23:07 +0000 (-0700) Subject: ide-floppy: Use blk_rq_is_scsi() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07d4b02d5487d3b6def678c98b4182606c3630d1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ide-floppy: Use blk_rq_is_scsi() This patch does not change any functionality. Signed-off-by: Bart Van Assche Acked-by: David S. Miller Reviewed-by: Hannes Reinecke Cc: linux-ide@vger.kernel.org Signed-off-by: Jens Axboe --- 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) {