Thread (36 messages) flat view 36 messages, 2 authors, 2021-07-22

Re: [PATCH 20/24] scsi: remove a very misleading comment

From: Christoph Hellwig <hch@lst.de>
Date: 2021-07-22 19:21:39
Also in: linux-scsi

On Thu, Jul 22, 2021 at 10:52:44AM -0700, Bart Van Assche wrote:
quoted
- * routines know the command size based on the opcode decode.
- *
- * The output area is then filled in starting from the command byte.
- */
-
  static int ioctl_internal_command(struct scsi_device *sdev, char *cmd,
  				  int timeout, int retries)
  {
How about adding a comment that explains what this function does? How about 
declaring 'cmd' const and adding a comment that it is a pointer to a SCSI 
CDB? How about documenting the unit of 'timeout'?
Not sure there is much of a point for a static function in (pun intended)
fairly static code.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help