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
This commit is contained in:
Albert Cranford committed 2002-07-30 03:06:39 +00:00
1 parent a1cb4f5b03
commit bd6a9d2af1
1 file changed
+1 -3
+1 -3
View File
@@ -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);
}