提交 17ac98ac 编写于 作者: S Sudip Mukherjee 提交者: Greg Kroah-Hartman

staging: most: fix error comparison

device_create() returns ERR_PTR on error, it does not return NULL.
Signed-off-by: NSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0833ac7d
......@@ -1869,7 +1869,7 @@ static int __init most_init(void)
class_glue_dir =
device_create(most_class, NULL, 0, NULL, "mostcore");
if (!class_glue_dir)
if (IS_ERR(class_glue_dir))
goto exit_driver;
most_aim_kset =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册