]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mac53c94: 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:35:30 +0000 (21:35 -0500)
commit677b563a7d80681ace5d3d5f48c7fb481a7b4c04
tree468b48932296d6f49454f14a9319a511ca7d6843
parent131c3cadbfed4d91c4344f20cc53916304becb96
scsi: mac53c94: 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/3529a59873a7de8455a27af2528341afe5069adc.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/mac53c94.c
drivers/scsi/mac53c94.h