summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-01-23 11:08:05 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-01-29 00:46:22 -0500
commit59abc8cc05856cb31d6e07a8e25f0d749d559233 (patch)
treead0986eee707205b94267fcb47e6817ee8a36f95 /include/scsi
parentb64ae4abbdc4a5d56de8c97095a43182c10aa726 (diff)
downloadlinux-59abc8cc05856cb31d6e07a8e25f0d749d559233.tar.gz
linux-59abc8cc05856cb31d6e07a8e25f0d749d559233.tar.bz2
linux-59abc8cc05856cb31d6e07a8e25f0d749d559233.zip
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 'include/scsi')
-rw-r--r--include/scsi/scsi.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index eb7853c1a23b..5339baadc082 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -274,10 +274,4 @@ static inline int scsi_is_wlun(u64 lun)
/* Used to obtain the PCI location of a device */
#define SCSI_IOCTL_GET_PCI 0x5387
-/* Pull a u32 out of a SCSI message (using BE SCSI conventions) */
-static inline __u32 scsi_to_u32(__u8 *ptr)
-{
- return (ptr[0]<<24) + (ptr[1]<<16) + (ptr[2]<<8) + ptr[3];
-}
-
#endif /* _SCSI_SCSI_H */