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

Roel Kluin roel.kluin at gmail.com
Fri Oct 23 14:14:09 UTC 2009


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 at gmail.com>
> ---
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(-)



More information about the devel mailing list