[MIPS] Yosemite: fix uninitialized variable in titan_i2c_xfer()

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Yoichi Yuasa 2006-10-31 13:38:44 +09:00 committed by Ralf Baechle
parent c21e6d65f7
commit 38384c8bd8
1 changed files with 1 additions and 1 deletions

View File

@ -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;