From 6ac3d080534c4707895fdfd05aa8553c91d981d7 Mon Sep 17 00:00:00 2001 From: Kiwoong Kim Date: Fri, 23 Jun 2017 14:58:06 +0900 Subject: [PATCH] [COMMON] scsi: ufs: Remove one condition to check pm level policy range The second operand is zero and the first operand is unsinged. Therefore, the condition is meaningless. Change-Id: Ibdbe83b04c421a6376ab0584117baa57df16af19 Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd-pltfrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 26d187090cfd..91410acaa9f1 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -236,7 +236,7 @@ static int ufshcd_parse_pm_lvl_policy(struct ufs_hba *hba) lvl[i] = lvl_def[i]; } - if (lvl[i] < UFS_PM_LVL_0 || lvl[i] >= UFS_PM_LVL_MAX) { + if (lvl[i] >= UFS_PM_LVL_MAX) { dev_warn(hba->dev, "UFS power management: out of range level%d index %d\n", lvl[i], i); -- 2.20.1