From: Alexey Dobriyan Date: Fri, 29 Sep 2006 09:00:58 +0000 (-0700) Subject: [PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver() X-Git-Tag: v2.6.19-rc1~714 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=92e9a8507ba81ff9e25bd9c5030ff8586269eefb;p=linux-2.6-omap-h63xx.git [PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver() Signed-off-by: Alexey Dobriyan Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index aceb61d9fbc..83f79de7174 100644 --- 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_client *client) 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)