diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-09-29 02:00:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 09:18:19 -0700 |
commit | 92e9a8507ba81ff9e25bd9c5030ff8586269eefb (patch) | |
tree | 40c7f1ab30ac5a0e0966d1673e00dec753242eb4 /drivers | |
parent | 28298232a15c48ea9835d5d24577cde87923e55c (diff) | |
download | linux-3.10-92e9a8507ba81ff9e25bd9c5030ff8586269eefb.tar.gz linux-3.10-92e9a8507ba81ff9e25bd9c5030ff8586269eefb.tar.bz2 linux-3.10-92e9a8507ba81ff9e25bd9c5030ff8586269eefb.zip |
[PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/macintosh/windfarm_smu_sat.c | 7 |
1 files changed, 1 insertions, 6 deletions
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) |