scsi: ufs: Remove redundant WB enabling check in ufshcd_wb_toggle_flush()
PATCH 1/1 scsi: ufs: Remove redundant WB enabling check in ufshcd_wb_toggle_flush()
From: Yue Hu <[email protected]>
Note that ufshcd_wb_toggle_flush() will be called only in ufshcd_wb_config() which have already checked if WB is allowed.
Signed-off-by Yue Hu <[email protected]>
--- drivers/scsi/ufs/ufshcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/ufs/ufshcd.c +1 -2
@@ -5484,8 +5484,7 @@ static inline int ufshcd_wb_toggle_flush(struct ufs_hba *hba, bool enable)u8 index;enum query_opcode opcode; -if (!ufshcd_is_wb_allowed (hba) || - hba->dev_info.wb_buf_flush_enabled == enable) +if (hba->dev_info.wb_buf_flush_enabled == enable)return 0 ;if (enable)
Signature · 1 line
1.9.1