summaryrefslogtreecommitdiff
path: root/drivers/scsi/sr.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-07-24 10:20:15 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-07-29 05:24:24 +0300
commit6fade4505af898c849ebe80f54313aa9c387e6da (patch)
treed89a7ebe1b88ce357b71af6745e53c3b18b4a29e /drivers/scsi/sr.c
parent2c2db2c6059a426ac27f467062ff2ba6871b69e6 (diff)
downloadlinux-6fade4505af898c849ebe80f54313aa9c387e6da.tar.xz
scsi: core: Remove scsi_compat_ioctl()
Just handle the compat case in scsi_ioctl() using in_compat_syscall(). Link: https://lore.kernel.org/r/20210724072033.1284840-7-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r--drivers/scsi/sr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index b34f06924659..c5e163a659d2 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -584,10 +584,7 @@ static int sr_block_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
goto put;
}
- if (in_compat_syscall())
- ret = scsi_compat_ioctl(sdev, cmd, argp);
- else
- ret = scsi_ioctl(sdev, cmd, argp);
+ ret = scsi_ioctl(sdev, cmd, argp);
put:
scsi_autopm_put_device(sdev);