mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
45e3e1935e
commit
1cf92b453a
1 changed files with 1 additions and 1 deletions
|
@ -1509,7 +1509,7 @@ struct i2c_adapter* i2c_get_adapter(int id)
|
||||||
struct i2c_adapter *adapter;
|
struct i2c_adapter *adapter;
|
||||||
|
|
||||||
mutex_lock(&core_lock);
|
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))
|
if (adapter && !try_module_get(adapter->owner))
|
||||||
adapter = NULL;
|
adapter = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue