diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2019-01-23 14:08:05 -0500 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-01-29 00:46:22 -0500 |
| commit | 59abc8cc05856cb31d6e07a8e25f0d749d559233 (patch) | |
| tree | ad0986eee707205b94267fcb47e6817ee8a36f95 /drivers/scsi/libsas | |
| parent | b64ae4abbdc4a5d56de8c97095a43182c10aa726 (diff) | |
scsi: libsas: Remove scsi_to_u32()
Since the function scsi_to_u32() is identical to get_unaligned_be32(),
change all scsi_to_u32() calls into get_unaligned_be32() calls.
Cc: Jian Luo <luojian5@huawei.com>
Cc: John Garry <john.garry@huawei.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.garry@huawei.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libsas')
| -rw-r--r-- | drivers/scsi/libsas/sas_expander.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 83e3715d30e4..b13b245791b0 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include <linux/scatterlist.h> | 25 | #include <linux/scatterlist.h> |
| 26 | #include <linux/blkdev.h> | 26 | #include <linux/blkdev.h> |
| 27 | #include <linux/slab.h> | 27 | #include <linux/slab.h> |
| 28 | #include <asm/unaligned.h> | ||
| 28 | 29 | ||
| 29 | #include "sas_internal.h" | 30 | #include "sas_internal.h" |
| 30 | 31 | ||
| @@ -696,10 +697,10 @@ int sas_smp_get_phy_events(struct sas_phy *phy) | |||
| 696 | if (res) | 697 | if (res) |
| 697 | goto out; | 698 | goto out; |
| 698 | 699 | ||
| 699 | phy->invalid_dword_count = scsi_to_u32(&resp[12]); | 700 | phy->invalid_dword_count = get_unaligned_be32(&resp[12]); |
| 700 | phy->running_disparity_error_count = scsi_to_u32(&resp[16]); | 701 | phy->running_disparity_error_count = get_unaligned_be32(&resp[16]); |
| 701 | phy->loss_of_dword_sync_count = scsi_to_u32(&resp[20]); | 702 | phy->loss_of_dword_sync_count = get_unaligned_be32(&resp[20]); |
| 702 | phy->phy_reset_problem_count = scsi_to_u32(&resp[24]); | 703 | phy->phy_reset_problem_count = get_unaligned_be32(&resp[24]); |
| 703 | 704 | ||
| 704 | out: | 705 | out: |
| 705 | kfree(req); | 706 | kfree(req); |
