提交 38384c8b 编写于 作者: Y Yoichi Yuasa 提交者: Ralf Baechle

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

Signed-off-by: NYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 c21e6d65
...@@ -74,7 +74,7 @@ static int titan_i2c_poll(void) ...@@ -74,7 +74,7 @@ static int titan_i2c_poll(void)
int titan_i2c_xfer(unsigned int slave_addr, titan_i2c_command * cmd, int titan_i2c_xfer(unsigned int slave_addr, titan_i2c_command * cmd,
int size, unsigned int *addr) int size, unsigned int *addr)
{ {
int loop = 0, bytes, i; int loop, bytes = 0, i;
unsigned int *write_data, data, *read_data; unsigned int *write_data, data, *read_data;
unsigned long reg_val, val; unsigned long reg_val, val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册