Skip to content

Commit

Permalink
usb: phy: twl6030-usb: signedness bug in twl6030_readb()
Browse files Browse the repository at this point in the history
"ret" needs to be signed for the error handling to work.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Dan Carpenter authored and Felipe Balbi committed Nov 25, 2013
1 parent 501fae5 commit 0b55149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/phy/phy-twl6030-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
u8 data, ret = 0;
u8 data;
int ret;

ret = twl_i2c_read_u8(module, &data, address);
if (ret >= 0)
Expand Down

0 comments on commit 0b55149

Please sign in to comment.