Skip to content

Commit

Permalink
i2c: Remove void casts
Browse files Browse the repository at this point in the history
Remove uneeded void casts.

Signed-off-by: Jack Stone <jwjstone@fastmail.fm>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Jack Stone authored and Jean Delvare committed Jun 15, 2009
1 parent 45e3e19 commit 1cf92b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1cf92b4

Please sign in to comment.