[PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver()

Alexey Dobriyan adobriyan at gmail.com
Tue Aug 22 09:22:23 EST 2006


Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
---

 drivers/macintosh/windfarm_smu_sat.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- a/drivers/macintosh/windfarm_smu_sat.c
+++ b/drivers/macintosh/windfarm_smu_sat.c
@@ -397,12 +397,7 @@ static int wf_sat_detach(struct i2c_clie
 
 static int __init sat_sensors_init(void)
 {
-	int err;
-
-	err = i2c_add_driver(&wf_sat_driver);
-	if (err < 0)
-		return err;
-	return 0;
+	return i2c_add_driver(&wf_sat_driver);
 }
 
 static void __exit sat_sensors_exit(void)




More information about the Linuxppc-dev mailing list