Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38384c8b authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle
Browse files

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

parent c21e6d65
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;