i2c: Make i2c_del_driver a void function
Make i2c_del_driver a void function, like all other driver removal functions. It always returned 0 even when errors occured, and nobody ever actually checked the return value anyway. And we cannot fail a module removal anyway. Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
committed by
Jean Delvare
parent
a97f1ed090
commit
b3e820968a
@@ -586,10 +586,7 @@ the driver module is usually enough.
|
||||
void foo_cleanup(void)
|
||||
{
|
||||
if (foo_initialized == 1) {
|
||||
if ((res = i2c_del_driver(&foo_driver))) {
|
||||
printk("foo: Driver registration failed, module not removed.\n");
|
||||
return;
|
||||
}
|
||||
i2c_del_driver(&foo_driver);
|
||||
foo_initialized --;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user