Commit 17ac98ac authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

staging: most: fix error comparison

device_create() returns ERR_PTR on error, it does not return NULL.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0833ac7d
...@@ -1869,7 +1869,7 @@ static int __init most_init(void) ...@@ -1869,7 +1869,7 @@ static int __init most_init(void)
class_glue_dir = class_glue_dir =
device_create(most_class, NULL, 0, NULL, "mostcore"); device_create(most_class, NULL, 0, NULL, "mostcore");
if (!class_glue_dir) if (IS_ERR(class_glue_dir))
goto exit_driver; goto exit_driver;
most_aim_kset = most_aim_kset =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment