Don't check return value for a void function
Signed-off-by: Tony Lindgren <tony@atomide.com>
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 */
}
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);
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;
}