Commit f0fc74e8 authored by Tony Lindgren's avatar Tony Lindgren

I2C: Don't check return value for a void function

Don't check return value for a void function
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 20917781
......@@ -940,8 +940,7 @@ static int __init menelaus_init(void)
static void __exit menelaus_exit(void)
{
if (i2c_del_driver(&menelaus_i2c_driver) < 0)
pr_err("driver remove failed\n");
i2c_del_driver(&menelaus_i2c_driver);
/* FIXME: Shutdown menelaus parts that can be shut down */
}
......
......@@ -655,8 +655,7 @@ static void __exit aic23_exit(void)
int res;
aic23_power_down();
if ((res = i2c_del_driver(&aic23_driver)))
printk("aic23 i2c: Driver remove failed, module not removed.\n");
i2c_del_driver(&aic23_driver);
platform_device_unregister(&audio_i2c_device);
platform_driver_unregister(&audio_i2c_driver);
......
......@@ -891,9 +891,7 @@ static int __init twl4030_init(void)
static void __exit twl4030_exit(void)
{
if (i2c_del_driver(&twl4030_driver))
printk(KERN_ERR
"TWL4030: Driver remove failed, module not removed\n");
i2c_del_driver(&twl4030_driver);
twl_irq_used = FREE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment