diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-04-04 21:44:45 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-09 04:16:34 +0200 |
commit | 2c26348c4d090caeb308530ea893b37897e4a58d (patch) | |
tree | 9e4a1344bb6fc83df9662ef0fa709d7ffcb3d271 /drivers/scsi/qla2xxx/qla_nvme.c | |
parent | scsi: qla2xxx: Make qla2x00_process_response_queue() easier to read (diff) | |
download | linux-2c26348c4d090caeb308530ea893b37897e4a58d.tar.xz linux-2c26348c4d090caeb308530ea893b37897e4a58d.zip |
scsi: qla2xxx: Use get/put_unaligned where appropriate
This patch makes the code easier to read but does not change any
functionality.
Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_nvme.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_nvme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c index 3a6160ca9b4a..f084936e68f9 100644 --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -449,8 +449,8 @@ static inline int qla2x00_start_nvme_mq(srb_t *sp) req->ring_ptr++; } cont_pkt = (cont_a64_entry_t *)req->ring_ptr; - *((uint32_t *)(&cont_pkt->entry_type)) = - cpu_to_le32(CONTINUE_A64_TYPE); + put_unaligned_le32(CONTINUE_A64_TYPE, + &cont_pkt->entry_type); cur_dsd = (uint32_t *)cont_pkt->dseg_0_address; avail_dsds = 5; |