projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e3e19
)
i2c: Remove void casts
author
Jack Stone
<jwjstone@fastmail.fm>
Mon, 15 Jun 2009 16:01:46 +0000
(18:01 +0200)
committer
Jean Delvare
<khali@linux-fr.org>
Mon, 15 Jun 2009 16:01:46 +0000
(18:01 +0200)
Remove uneeded void casts.
Signed-off-by: Jack Stone <jwjstone@fastmail.fm>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/i2c-core.c
b/drivers/i2c/i2c-core.c
index
85e2e91
..
dfd7bc8
100644
(file)
--- a/
drivers/i2c/i2c-core.c
+++ b/
drivers/i2c/i2c-core.c
@@
-1509,7
+1509,7
@@
struct i2c_adapter* i2c_get_adapter(int id)
struct i2c_adapter *adapter;
mutex_lock(&core_lock);
- adapter =
(struct i2c_adapter *)
idr_find(&i2c_adapter_idr, id);
+ adapter = idr_find(&i2c_adapter_idr, id);
if (adapter && !try_module_get(adapter->owner))
adapter = NULL;