Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600008

Re: [scsi] scsi: ufs: don't check unsigned type for a negative value

From "Martin K. Petersen" <martin.petersen@oracle.com>
Newsgroups linux.kernel
Subject Re: [scsi] scsi: ufs: don't check unsigned type for a negative value
Date 2017-03-14 04:10 +0100
Message-ID <tkL0u-2gr-3@gated-at.bofh.it> (permalink)
References <tk8Vc-8tV-7@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


>>>>> "Tomas" == Tomas Winkler <tomas.winkler@intel.com> 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[scsi] scsi: ufs: don't check unsigned type for a negative value Tomas Winkler <tomas.winkler@intel.com> - 2017-03-12 11:30 +0100
  Re: [scsi] scsi: ufs: don't check unsigned type for a negative value Subhash Jadavani <subhashj@codeaurora.org> - 2017-03-14 01:20 +0100
    Re: [scsi] scsi: ufs: don't check unsigned type for a negative value James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-03-15 18:30 +0100
      Re: [scsi] scsi: ufs: don't check unsigned type for a negative value Subhash Jadavani <subhashj@codeaurora.org> - 2017-03-16 00:00 +0100
  Re: [scsi] scsi: ufs: don't check unsigned type for a negative value "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-03-14 04:10 +0100

csiph-web