scsi: ufs: Cleanup WriteBooster feature
authorStanley Chu <stanley.chu@mediatek.com>
Fri, 8 May 2020 08:01:15 +0000 (16:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 May 2020 02:48:47 +0000 (22:48 -0400)
commit79e3520f82cb91e46e7db1af14ad916d6036dde8
tree79f55f88b1dc407f3056095b229626708743c417
parent29060a629135a00414d6ea3fbb246a114898f4be
scsi: ufs: Cleanup WriteBooster feature

Small cleanup as below items,

 1. Use ufshcd_is_wb_allowed() directly instead of ufshcd_wb_sup() since
    ufshcd_wb_sup() just returns the result of ufshcd_is_wb_allowed().

 2. In ufshcd_suspend(), "else if (!ufshcd_is_runtime_pm(pm_op)) can be
    simplified to "else" since both have the same meaning.

This patch does not change any functionality.

Link: https://lore.kernel.org/r/20200508080115.24233-9-stanley.chu@mediatek.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c