]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1479416e456b3e2acf3da26894d47ae06a67870
tree2f74ec6e00f61e2db10730d82ce70bd22d36d701
parent3103fb68638bd75d8b4e3d9b114b67dad0036df8
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