]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufshpb: Clean up ufshpb_suspend()/resume()
authorBean Huo <beanhuo@micron.com>
Thu, 5 May 2022 13:47:07 +0000 (15:47 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 02:01:52 +0000 (22:01 -0400)
commitb1c4205b326d15c79a68985970c23c46c8d4ec4f
treec40de8aa3734046f69c3f6f44935e0d3d30f4e73
parent83d207f65525252690920a1c6924ff25fe30b41f
scsi: ufs: ufshpb: Clean up ufshpb_suspend()/resume()

ufshpb_resume() is only called when the HPB state is HPB_SUSPEND, so the
check statement for "ufshpb_get_state(hpb) != HPB_PRESENT" is useless.

Link: https://lore.kernel.org/r/20220505134707.35929-7-huobean@gmail.com
Reviewed-by: Keoseong Park <keosung.park@samsung.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c