[PATCH] I2C: Make i2c list terminators explicitely unsigned

From: Greg KH
Date: Fri Mar 04 2005 - 16:26:25 EST


ChangeSet 1.2107, 2005/03/02 15:02:10-08:00, khali@xxxxxxxxxxxx

[PATCH] I2C: Make i2c list terminators explicitely unsigned

Shouldn't the i2c list terminators be explicitely declared as unsigned?
I'd hope it to help code analysis tools and possibly avoid false
positives. Coverity's SWAT pointed my attention to these constants.

Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>


include/linux/i2c.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/include/linux/i2c.h b/include/linux/i2c.h
--- a/include/linux/i2c.h 2005-03-04 12:23:42 -08:00
+++ b/include/linux/i2c.h 2005-03-04 12:23:42 -08:00
@@ -299,8 +299,8 @@
};

/* Internal numbers to terminate lists */
-#define I2C_CLIENT_END 0xfffe
-#define I2C_CLIENT_ISA_END 0xfffefffe
+#define I2C_CLIENT_END 0xfffeU
+#define I2C_CLIENT_ISA_END 0xfffefffeU

/* The numbers to use to set I2C bus address */
#define ANY_I2C_BUS 0xffff

-
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/