projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.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
|
blame
|
history
diff --git
a/drivers/i2c/i2c-core.c
b/drivers/i2c/i2c-core.c
index 85e2e919d1cd86e36e0c07815edf2b098e87ae49..dfd7bc8094bf9c76f1ced36e46fe69bc81f6223d 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;