]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Always initialize the UIC done completion
authorBart Van Assche <bvanassche@acm.org>
Thu, 12 Sep 2024 22:30:05 +0000 (15:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 4 Oct 2024 01:34:43 +0000 (21:34 -0400)
commitb1e8c53749adb795bfb0bf4e2f7836e26684bb90
treec5da9668ef4e4929c70381c8b9652603c2386cc1
parentfcd8b0450a9acbf3f0e88d749a72ef932df97663
scsi: ufs: core: Always initialize the UIC done completion

Simplify __ufshcd_send_uic_cmd() by always initializing the
uic_cmd::done completion. This is fine since the time required to
initialize a completion is small compared to the time required to
process an UIC command.

Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240912223019.3510966-5-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c