From 5f66e08cf81eda84768dd3fce14e27bebbd627fa Mon Sep 17 00:00:00 2001 From: Albert Cranford Date: Tue, 30 Jul 2002 03:00:22 +0000 Subject: [PATCH] Compile warnings uninitialized variables. Initialize to 0. ACC 29jul02 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1470 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/w83781d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/chips/w83781d.c b/kernel/chips/w83781d.c index 3f275c75..a084f4a9 100644 --- a/kernel/chips/w83781d.c +++ b/kernel/chips/w83781d.c @@ -762,7 +762,7 @@ int w83781d_attach_adapter(struct i2c_adapter *adapter) int w83781d_detect(struct i2c_adapter *adapter, int address, unsigned short flags, int kind) { - int i, val1, val2, id; + int i, val1 = 0, val2, id; struct i2c_client *new_client; struct w83781d_data *data; int err = 0; @@ -1273,7 +1273,7 @@ int w83781d_write_value(struct i2c_client *client, u16 reg, u16 value) void w83781d_init_client(struct i2c_client *client) { struct w83781d_data *data = client->data; - int vid, i; + int vid = 0, i; int type = data->type; u8 tmp;