]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Use get_unaligned_be16() instead of be16_to_cpup()
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:57:50 +0000 (15:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:02 +0000 (23:23 -0400)
commit3965ef1203c07d0eaa7158f1980d889fb1e1b38a
tree877e2c03525ed5dfd35b89e61874f9403fb10da9
parente61ba2e567b7e9622d0f1e25ca437c6fc93fe25d
scsi: ufs: Use get_unaligned_be16() instead of be16_to_cpup()

Use get_unaligned_be16(...) instead of the equivalent but harder to read
be16_to_cpup((__be16 *)...).

Link: https://lore.kernel.org/r/20220419225811.4127248-8-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c