Re: [PATCH 11/19] sd: Remove a useless comparison

2017-08-25 Thread Hannes Reinecke
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) >

[PATCH 11/19] sd: Remove a useless comparison

2017-08-23 Thread Bart Van Assche
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 +