Re: [PATCH] addi-data: Cleanup redundant tests on unsigned

From: Roel Kluin
Date: Fri Oct 23 2009 - 10:03:58 EST


Op 23-10-09 12:26, Roel Kluin schreef:
> The variables are unsigned so the test `>= 0' is always true,
> In these cases the other part of the test catch wrapped values.
>
> Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
> ---
I forgot the stats:

.../comedi/drivers/addi-data/APCI1710_Chrono.c | 3 +--
.../comedi/drivers/addi-data/hwdrv_apci1032.c | 2 +-
.../comedi/drivers/addi-data/hwdrv_apci1500.c | 2 +-
.../comedi/drivers/addi-data/hwdrv_apci1516.c | 2 +-
.../comedi/drivers/addi-data/hwdrv_apci1564.c | 2 +-
.../comedi/drivers/addi-data/hwdrv_apci2016.c | 4 ++--
.../comedi/drivers/addi-data/hwdrv_apci2200.c | 2 +-
.../comedi/drivers/addi-data/hwdrv_apci3120.c | 5 ++---
.../comedi/drivers/addi-data/hwdrv_apci3200.c | 2 +-
.../comedi/drivers/addi-data/hwdrv_apci3xxx.c | 2 +-
10 files changed, 12 insertions(+), 14 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/