android_kernel_motorola_sm6375/drivers/i2c
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Julia Lawall 8032214346 i2c/i2c-pasemi.c: Fix unsigned return type
The function has an unsigned return type, but returns a negative constant
to indicate an error condition.  The result of calling the function is
always stored in a variable of type (signed) int, and thus unsigned can be
dropped from the return type.

A sematic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@exists@
identifier f;
constant C;
@@

 unsigned f(...)
 { <+...
*  return -C;
 ...+> }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-10-13 16:19:04 +11:00
..
algos
busses i2c/i2c-pasemi.c: Fix unsigned return type 2010-10-13 16:19:04 +11:00
muxes i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00
i2c-boardinfo.c
i2c-core.c of/i2c: Fix module load order issue caused by of_i2c.c 2010-09-30 14:14:23 +02:00
i2c-core.h
i2c-dev.c i2c: Multiplexed I2C bus core support 2010-08-11 18:21:02 +02:00
i2c-mux.c i2c: Multiplexed I2C bus core support 2010-08-11 18:21:02 +02:00
i2c-smbus.c
Kconfig i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00
Makefile i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00