mirror of https://gitee.com/openkylin/linux.git
[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:
parent
c21e6d65f7
commit
38384c8bd8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue