提交 1cf92b45 编写于 作者: J Jack Stone 提交者: Jean Delvare

i2c: Remove void casts

Remove uneeded void casts.
Signed-off-by: NJack Stone <jwjstone@fastmail.fm>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 45e3e193
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册