i2c: Remove void casts
authorJack Stone <jwjstone@fastmail.fm>
Mon, 15 Jun 2009 16:01:46 +0000 (18:01 +0200)
committerJean Delvare <khali@linux-fr.org>
Mon, 15 Jun 2009 16:01:46 +0000 (18:01 +0200)
Remove uneeded void casts.

Signed-off-by: Jack Stone <jwjstone@fastmail.fm>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c

index 85e2e919d1cd86e36e0c07815edf2b098e87ae49..dfd7bc8094bf9c76f1ced36e46fe69bc81f6223d 100644 (file)
@@ -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;