On 08/23/2017 11:40 PM, Bart Van Assche wrote:
> This patch avoids that gcc reports the following warning when
> building with W=1:
>
> drivers/scsi/sd.c:315:10: warning: comparison of unsigned expression >= 0 is
> always true [-Wtype-limits]
> if (val >= 0 && val <= T10_PI_TYPE3_PROTECTION)
>
This patch avoids that gcc reports the following warning when
building with W=1:
drivers/scsi/sd.c:315:10: warning: comparison of unsigned expression >= 0 is
always true [-Wtype-limits]
if (val >= 0 && val <= T10_PI_TYPE3_PROTECTION)
Signed-off-by: Bart Van Assche
---
drivers/scsi/sd.c | 2 +
2 matches
Mail list logo