mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +00:00
Fix rather strange un-parenthesized "if" clause that somebody's
compiler tripped over, even though it shouldn't have.
Ticket #638.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1162 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
9cb75406e5
commit
147e70c39c
3 files changed
+7
-10
No files matched your search
+2
-3
@@ -517,9 +517,8 @@ int it87_detach_client(struct i2c_client *client)
|
||||
return err;
|
||||
}
|
||||
|
||||
if i2c_is_isa_client
|
||||
(client)
|
||||
release_region(client->addr, IT87_EXTENT);
|
||||
if(i2c_is_isa_client(client))
|
||||
release_region(client->addr, IT87_EXTENT);
|
||||
kfree(client);
|
||||
|
||||
return 0;
|
||||
|
||||
+2
-3
@@ -478,9 +478,8 @@ int lm78_detach_client(struct i2c_client *client)
|
||||
return err;
|
||||
}
|
||||
|
||||
if i2c_is_isa_client
|
||||
(client)
|
||||
release_region(client->addr, LM78_EXTENT);
|
||||
if(i2c_is_isa_client(client))
|
||||
release_region(client->addr, LM78_EXTENT);
|
||||
kfree(client);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -983,10 +983,9 @@ int w83781d_detach_client(struct i2c_client *client)
|
||||
return err;
|
||||
}
|
||||
|
||||
if i2c_is_isa_client
|
||||
(client)
|
||||
release_region(client->addr, W83781D_EXTENT);
|
||||
else {
|
||||
if(i2c_is_isa_client(client)) {
|
||||
release_region(client->addr, W83781D_EXTENT);
|
||||
} else {
|
||||
i2c_detach_client(&
|
||||
(((struct
|
||||
w83781d_data *) (client->data))->
|
||||
|
||||
Reference in new issue
Block a user