diff options
author | Finn Thain <fthain@linux-m68k.org> | 2022-02-22 10:09:42 +1100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-27 21:34:02 -0500 |
commit | 2e1b3175f29c0299cc0eb2df6fb1f72e258ac5c1 (patch) | |
tree | 395c088463944bbd38039eb4ab77dd8d44b7d699 /drivers/scsi/mesh.h | |
parent | 5c139ce9e1c2737a37454b607912da619d09637e (diff) |
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>
Diffstat (limited to 'drivers/scsi/mesh.h')
-rw-r--r-- | drivers/scsi/mesh.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/mesh.h b/drivers/scsi/mesh.h index 1afa8b37295b..f70181acceac 100644 --- a/drivers/scsi/mesh.h +++ b/drivers/scsi/mesh.h @@ -9,14 +9,14 @@ #define _MESH_H struct mesh_cmd_priv { - struct scsi_pointer scsi_pointer; + int this_residual; + int message; + int status; }; -static inline struct scsi_pointer *mesh_scsi_pointer(struct scsi_cmnd *cmd) +static inline struct mesh_cmd_priv *mesh_priv(struct scsi_cmnd *cmd) { - struct mesh_cmd_priv *mcmd = scsi_cmd_priv(cmd); - - return &mcmd->scsi_pointer; + return scsi_cmd_priv(cmd); } /* |