[MIPS] Yosemite: fix uninitialized variable in titan_i2c_xfer()
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Tue, 31 Oct 2006 04:38:44 +0000 (13:38 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 31 Oct 2006 20:13:21 +0000 (20:13 +0000)
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pmc-sierra/yosemite/i2c-yosemite.c

index 416da22..85b14c7 100644 (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;