]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: core: Simplify ufshcd_comp_scsi_upiu()
authorBart Van Assche <bvanassche@acm.org>
Thu, 21 Sep 2023 19:22:48 +0000 (12:22 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Sep 2023 15:12:50 +0000 (11:12 -0400)
commitc788cf8a21cd3b12a1823869878e3fd93132859f
treeaa5458a61a36232721669c050e64076efd41b939
parent858231bdb223916d6fa56fd0278074905cc201c1
scsi: ufs: core: Simplify ufshcd_comp_scsi_upiu()

ufshcd_comp_scsi_upiu() has one caller and that caller ensures that
lrbp->cmd != NULL. Hence leave out the lrbp->cmd check from
ufshcd_comp_scsi_upiu().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230921192335.676924-4-bvanassche@acm.org
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c