Commit 0b551490 authored by Dan Carpenter's avatar Dan Carpenter Committed by Felipe Balbi

usb: phy: twl6030-usb: signedness bug in twl6030_readb()

"ret" needs to be signed for the error handling to work.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 501fae51
...@@ -127,7 +127,8 @@ static inline int twl6030_writeb(struct twl6030_usb *twl, u8 module, ...@@ -127,7 +127,8 @@ static inline int twl6030_writeb(struct twl6030_usb *twl, u8 module,
static inline u8 twl6030_readb(struct twl6030_usb *twl, u8 module, u8 address) static inline u8 twl6030_readb(struct twl6030_usb *twl, u8 module, u8 address)
{ {
u8 data, ret = 0; u8 data;
int ret;
ret = twl_i2c_read_u8(module, &data, address); ret = twl_i2c_read_u8(module, &data, address);
if (ret >= 0) if (ret >= 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment