Parcourir la source

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>
Jack Stone il y a 16 ans
Parent
commit
1cf92b453a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      drivers/i2c/i2c-core.c

+ 1 - 1
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;