mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
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
This commit is contained in:
1 parent
80e7d3a840
commit
5f66e08cf8
1 file changed
+2
-2
@@ -762,7 +762,7 @@ int w83781d_attach_adapter(struct i2c_adapter *adapter)
|
|||||||
int w83781d_detect(struct i2c_adapter *adapter, int address,
|
int w83781d_detect(struct i2c_adapter *adapter, int address,
|
||||||
unsigned short flags, int kind)
|
unsigned short flags, int kind)
|
||||||
{
|
{
|
||||||
int i, val1, val2, id;
|
int i, val1 = 0, val2, id;
|
||||||
struct i2c_client *new_client;
|
struct i2c_client *new_client;
|
||||||
struct w83781d_data *data;
|
struct w83781d_data *data;
|
||||||
int err = 0;
|
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)
|
void w83781d_init_client(struct i2c_client *client)
|
||||||
{
|
{
|
||||||
struct w83781d_data *data = client->data;
|
struct w83781d_data *data = client->data;
|
||||||
int vid, i;
|
int vid = 0, i;
|
||||||
int type = data->type;
|
int type = data->type;
|
||||||
u8 tmp;
|
u8 tmp;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user