From bd6a9d2af112c00bc1622c0cd462e6d3f6622cea Mon Sep 17 00:00:00 2001 From: Albert Cranford Date: Tue, 30 Jul 2002 03:06:39 +0000 Subject: [PATCH] Removed unused variable tmpstatus in pcf8574_write. Corrected if (*nrels_mag = 1) to if (*nrels_mag == 1) in pcf8574_write. ACC 29jul02 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1472 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/pcf8574.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/chips/pcf8574.c b/kernel/chips/pcf8574.c index 6f9ade1b..15148d75 100644 --- a/kernel/chips/pcf8574.c +++ b/kernel/chips/pcf8574.c @@ -342,8 +342,6 @@ void pcf8574_read(struct i2c_client *client, int operation, void pcf8574_write(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results) { - u8 tmpstatus; - struct pcf8574_data *data = client->data; if (operation == SENSORS_PROC_REAL_INFO) *nrels_mag = 0; @@ -351,7 +349,7 @@ void pcf8574_write(struct i2c_client *client, int operation, results[0] = data->write; *nrels_mag = 1; } else if (operation == SENSORS_PROC_REAL_WRITE) { - if (*nrels_mag = 1) { + if (*nrels_mag == 1) { data->write = results[0]; i2c_smbus_write_byte(client, data->write); }