summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>2006-10-31 05:38:44 +0100
committerRalf Baechle <ralf@linux-mips.org>2006-10-31 21:13:21 +0100
commit38384c8bd82474bf74ea68e4e44aaa14504deb07 (patch)
tree0323f9aaff5d340a9b9e0ba68c38df85f619e6ee
parent[MIPS] Sort out missuse of __init for prom_getcmdline() (diff)
downloadlinux-38384c8bd82474bf74ea68e4e44aaa14504deb07.tar.xz
linux-38384c8bd82474bf74ea68e4e44aaa14504deb07.zip
[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>
-rw-r--r--arch/mips/pmc-sierra/yosemite/i2c-yosemite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pmc-sierra/yosemite/i2c-yosemite.c b/arch/mips/pmc-sierra/yosemite/i2c-yosemite.c
index 416da22b3bf4..85b14c73c226 100644
--- a/arch/mips/pmc-sierra/yosemite/i2c-yosemite.c
+++ b/arch/mips/pmc-sierra/yosemite/i2c-yosemite.c
@@ -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;