Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: scsi_ioctl: Remove a very misleading comment

Remove the comment above ioctl_internal_command() which doesn't document
this function at all.

Link: https://lore.kernel.org/r/20210724072033.1284840-21-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Christoph Hellwig and committed by
Martin K. Petersen
a9705477 33ff4ce4

-23
-23
drivers/scsi/scsi_ioctl.c
··· 64 64 return 1; 65 65 } 66 66 67 - /* 68 - 69 - * The SCSI_IOCTL_SEND_COMMAND ioctl sends a command out to the SCSI host. 70 - * The IOCTL_NORMAL_TIMEOUT and NORMAL_RETRIES variables are used. 71 - * 72 - * dev is the SCSI device struct ptr, *(int *) arg is the length of the 73 - * input data, if any, not including the command string & counts, 74 - * *((int *)arg + 1) is the output buffer size in bytes. 75 - * 76 - * *(char *) ((int *) arg)[2] the actual command byte. 77 - * 78 - * Note that if more than MAX_BUF bytes are requested to be transferred, 79 - * the ioctl will fail with error EINVAL. 80 - * 81 - * This size *does not* include the initial lengths that were passed. 82 - * 83 - * The SCSI command is read from the memory location immediately after the 84 - * length words, and the input data is right after the command. The SCSI 85 - * routines know the command size based on the opcode decode. 86 - * 87 - * The output area is then filled in starting from the command byte. 88 - */ 89 - 90 67 static int ioctl_internal_command(struct scsi_device *sdev, char *cmd, 91 68 int timeout, int retries) 92 69 {