Skip to content

Commit

Permalink
[MIPS] Yosemite: fix uninitialized variable in titan_i2c_xfer()
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Oct 31, 2006
1 parent c21e6d6 commit 38384c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/pmc-sierra/yosemite/i2c-yosemite.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static int titan_i2c_poll(void)
int titan_i2c_xfer(unsigned int slave_addr, titan_i2c_command * cmd,
int size, unsigned int *addr)
{
int loop = 0, bytes, i;
int loop, bytes = 0, i;
unsigned int *write_data, data, *read_data;
unsigned long reg_val, val;

Expand Down

0 comments on commit 38384c8

Please sign in to comment.