diff options
| author | Christoph Hellwig <hch@lst.de> | 2021-07-24 09:20:26 +0200 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-07-28 22:24:26 -0400 |
| commit | 7353dc06c9a8e37c80da7ff986e6ef5123bec8ce (patch) | |
| tree | 99a416ca5c9eec02a8a2286c10802047c48a53f5 /drivers/scsi/scsi_ioctl.c | |
| parent | b69367dffd86813495cf01e128ff2c8a8e41bb83 (diff) | |
scsi: scsi_ioctl: Simplify SCSI passthrough permission checking
Remove the separate command filter structure and just use a switch
statement (which also cought two duplicate commands), return a bool and
give the function a sensible name.
Link: https://lore.kernel.org/r/20210724072033.1284840-18-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/scsi_ioctl.c')
0 files changed, 0 insertions, 0 deletions