scsi: ufs: don't check unsigned type for a negative value
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 12 Mar 2017 10:22:02 +0000 (12:22 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Mar 2017 17:37:18 +0000 (13:37 -0400)
commit949d7fa158b2b1af533bdb1af0dda8ab103ac58d
tree33963807742388957feb1d2ef6a1f41b95916210
parent2ef2884980873081a4edae92f9d88dd580c85f6e
scsi: ufs: don't check unsigned type for a negative value

Fix compilation warning:

drivers/scsi/ufs/ufshcd.c:7645:13: warning: comparison of unsigned
expression < 0 is always false [-Wtype-limits]
if ((value < UFS_PM_LVL_0) || (value >= UFS_PM_LVL_MAX))

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c