From a1cb4f5b037d7afb3eb4a14714512e3f4216b452 Mon Sep 17 00:00:00 2001 From: Albert Cranford Date: Tue, 30 Jul 2002 03:02:37 +0000 Subject: [PATCH] Compiler warning about uninitialized values. Initialized. ACC 29jul02 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1471 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/maxilife.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/chips/maxilife.c b/kernel/chips/maxilife.c index 222610cc..bebd45ca 100644 --- a/kernel/chips/maxilife.c +++ b/kernel/chips/maxilife.c @@ -427,9 +427,9 @@ int maxi_detect(struct i2c_adapter *adapter, int address, { struct i2c_client *new_client; struct maxi_data *data; - enum maxi_type type; + enum maxi_type type = 0; int i, j, err = 0; - const char *type_name, *client_name; + const char *type_name = NULL, *client_name = NULL; if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) goto ERROR0;