mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCSI] iscsi: Use struct scsi_lun in iscsi structs instead of u8[8]
struct scsi_lun is also just a struct with an array of 8 octets (64 bits) but using it instead in iscsi structs lets us call scsilun_to_int without a cast, and also lets us copy it using assignment, instead of memcpy(). Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
2e00d24e7e
commit
516f43a2a5
5 changed files with 23 additions and 24 deletions
|
@ -115,7 +115,7 @@ struct iscsi_task {
|
|||
/* copied values in case we need to send tmfs */
|
||||
itt_t hdr_itt;
|
||||
__be32 cmdsn;
|
||||
uint8_t lun[8];
|
||||
struct scsi_lun lun;
|
||||
|
||||
int itt; /* this ITT */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue