提交 92e9a850 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

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

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 28298232
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册