Re: [scsi] scsi: ufs: don't check unsigned type for a negative value
From: Martin K. Petersen
Date: Mon Mar 13 2017 - 23:02:28 EST
>>>>> "Tomas" == Tomas Winkler <tomas.winkler@xxxxxxxxx> writes:
Tomas> Fix compilation warning drivers/scsi/ufs/ufshcd.c:7645:13:
Tomas> warning: comparison of unsigned expression < 0 is always false
Tomas> [-Wtype-limits] if ((value < UFS_PM_LVL_0) || (value >=
Tomas> UFS_PM_LVL_MAX))
Applied to 4.11/scsi-fixes, thanks!
--
Martin K. Petersen Oracle Linux Engineering