diff options
author | Finn Thain <fthain@linux-m68k.org> | 2022-02-22 00:09:42 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-28 03:35:30 +0100 |
commit | 55a94551f61fb8ea1ab38e5959d97dfcedc9e833 (patch) | |
tree | 468b48932296d6f49454f14a9319a511ca7d6843 /drivers/scsi/mac53c94.h | |
parent | scsi: mesh: Stop using struct scsi_pointer (diff) | |
download | linux-55a94551f61fb8ea1ab38e5959d97dfcedc9e833.tar.xz linux-55a94551f61fb8ea1ab38e5959d97dfcedc9e833.zip |
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>
Diffstat (limited to 'drivers/scsi/mac53c94.h')
-rw-r--r-- | drivers/scsi/mac53c94.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/mac53c94.h b/drivers/scsi/mac53c94.h index 37d7d30f42ef..b4093027f9c3 100644 --- a/drivers/scsi/mac53c94.h +++ b/drivers/scsi/mac53c94.h @@ -213,14 +213,14 @@ struct mac53c94_regs { #define CF4_BBTE 0x01 struct mac53c94_cmd_priv { - struct scsi_pointer scsi_pointer; + int this_residual; + int status; + int message; }; -static inline struct scsi_pointer *mac53c94_scsi_pointer(struct scsi_cmnd *cmd) +static inline struct mac53c94_cmd_priv *mac53c94_priv(struct scsi_cmnd *cmd) { - struct mac53c94_cmd_priv *mcmd = scsi_cmd_priv(cmd); - - return &mcmd->scsi_pointer; + return scsi_cmd_priv(cmd); } #endif /* _MAC53C94_H */ |