]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: Don't check return value for a void function
authorTony Lindgren <tony@atomide.com>
Tue, 8 May 2007 01:17:26 +0000 (18:17 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 8 May 2007 01:26:46 +0000 (18:26 -0700)
Don't check return value for a void function

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/menelaus.c
drivers/i2c/chips/tlv320aic23.c
drivers/i2c/chips/twl4030_core.c

index c12ff20832147be7cea072d271287f9efc9bf0b4..5004915576552e9aee870e821b044176e7a8d0d4 100644 (file)
@@ -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 */
 }
index 65a8e6246c0c89b3139ab97b9c64560ab18601da..aaf9d1c46f1ce682275210f8bf6ddd277e53e0bc 100644 (file)
@@ -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);
index 31340642ce182051b74ff671011ec9e55af9cf10..d64ae65f010dbfca24526347db4cf76ee68ef666 100644 (file)
@@ -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;
 }