* [PATCH] scsi: ufs: Remove redundant WB enabling check in ufshcd_wb_toggle_flush()
@ 2021-03-05 9:12 Yue Hu
0 siblings, 0 replies; only message in thread
From: Yue Hu @ 2021-03-05 9:12 UTC (permalink / raw)
To: martin.petersen, jejb, linux-scsi
Cc: alim.akhtar, avri.altman, stanley.chu, cang, beanhuo, jaegeuk,
asutoshd, linux-kernel, huyue2, zhangwen, zbestahu
From: Yue Hu <huyue2@yulong.com>
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 <huyue2@yulong.com>
---
drivers/scsi/ufs/ufshcd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 721f55d..2c49344 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -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)
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-05 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 9:12 [PATCH] scsi: ufs: Remove redundant WB enabling check in ufshcd_wb_toggle_flush() Yue Hu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).