commit | 949d7fa158b2b1af533bdb1af0dda8ab103ac58d | [log] [tgz] |
---|---|---|
author | Tomas Winkler <tomas.winkler@intel.com> | Sun Mar 12 12:22:02 2017 +0200 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Wed Mar 15 13:37:18 2017 -0400 |
tree | 33963807742388957feb1d2ef6a1f41b95916210 | |
parent | 2ef2884980873081a4edae92f9d88dd580c85f6e [diff] |
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>