[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>
This commit is contained in:
Alexey Dobriyan 2006-09-29 02:00:58 -07:00 committed by Linus Torvalds
parent 28298232a1
commit 92e9a8507b

View File

@ -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)