diff options
author | Jack Stone <jwjstone@fastmail.fm> | 2009-06-15 18:01:46 +0200 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-06-15 18:01:46 +0200 |
commit | 1cf92b453a405f6e452737962933a19ec1582029 (patch) | |
tree | 24bb660e45cd13d49f383b5515a71b11bc73f34d /drivers/i2c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/kb... (diff) | |
download | linux-1cf92b453a405f6e452737962933a19ec1582029.tar.xz linux-1cf92b453a405f6e452737962933a19ec1582029.zip |
i2c: Remove void casts
Remove uneeded void casts.
Signed-off-by: Jack Stone <jwjstone@fastmail.fm>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 85e2e919d1cd..dfd7bc8094bf 100644 --- 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; |