scsi: ufs: Make ufshcd_prepare_utp_scsi_cmd_upiu() easier to read
authorBart Van Assche <bvanassche@acm.org>
Tue, 24 Dec 2019 22:02:45 +0000 (14:02 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 3 Jan 2020 02:57:44 +0000 (21:57 -0500)
commit1b21b8f008c156686079c4c2b207c4a28a0a769d
tree2f74ec6e00f61e2db10730d82ce70bd22d36d701
parente4d2add7fd5bc64ee3e388eabe6b9e081cb42e11
scsi: ufs: Make ufshcd_prepare_utp_scsi_cmd_upiu() easier to read

Since the lrbp->cmd expression occurs multiple times, introduce a new local
variable to hold that pointer. This patch does not change any
functionality.

Cc: Bean Huo <beanhuo@micron.com>
Cc: Can Guo <cang@codeaurora.org>
Cc: Avri Altman <avri.altman@wdc.com>
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20191224220248.30138-4-bvanassche@acm.org
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c