aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ch.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-07-24 09:20:15 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-07-28 22:24:24 -0400
commit6fade4505af898c849ebe80f54313aa9c387e6da (patch)
treed89a7ebe1b88ce357b71af6745e53c3b18b4a29e /drivers/scsi/ch.c
parentscsi: sg: Consolidate compat ioctl handling (diff)
downloadlinux-dev-6fade4505af898c849ebe80f54313aa9c387e6da.tar.xz
linux-dev-6fade4505af898c849ebe80f54313aa9c387e6da.zip
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/ch.c')
-rw-r--r--drivers/scsi/ch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c
index cf517381cbcc..e354a95c56af 100644
--- a/drivers/scsi/ch.c
+++ b/drivers/scsi/ch.c
@@ -877,8 +877,6 @@ static long ch_ioctl(struct file *file,
}
default:
- if (in_compat_syscall())
- return scsi_compat_ioctl(ch->device, cmd, argp);
return scsi_ioctl(ch->device, cmd, argp);
}