Drop useless casts in init code.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3037 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-07-16 16:01:09 +00:00
1 parent 0be7c973b1
commit cb8d82d797
1 file changed
+3 -3
+3 -3
View File
@@ -257,10 +257,10 @@ static void lm75_init_client(struct i2c_client *client)
{
int i;
/* Enable if in shutdown */
/* Enable if in shutdown mode */
i = lm75_read_value(client, LM75_REG_CONF);
if(i >= 0 && ((u8) i) & 0x01)
lm75_write_value(client, LM75_REG_CONF, ((u8) i) & 0xfe);
if (i >= 0 && (i & 0x01))
lm75_write_value(client, LM75_REG_CONF, i & 0xfe);
}
static void lm75_update_client(struct i2c_client *client)