]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mesh: Stop using struct scsi_pointer
authorFinn Thain <fthain@linux-m68k.org>
Mon, 21 Feb 2022 23:09:42 +0000 (10:09 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:34:02 +0000 (21:34 -0500)
commit131c3cadbfed4d91c4344f20cc53916304becb96
tree395c088463944bbd38039eb4ab77dd8d44b7d699
parent1aa78b4e346997d6c38b2074946fc1cb5f394388
scsi: mesh: Stop using struct scsi_pointer

This driver doesn't use SCp.ptr to save a SCSI command data pointer which
means "scsi pointer" is a complete misnomer here. Only a few members of
struct scsi_pointer are used and the rest waste memory.  Avoid the "struct
foo { struct bar; };" silliness.

Link: https://lore.kernel.org/r/fbf930e64af5b15ca028dfe25b00fe933951f19b.1645484982.git.fthain@linux-m68k.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mesh.c
drivers/scsi/mesh.h