summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-11-22 22:30:54 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 17:34:58 -0800
commit17ac98ac7339bdf867633d788e1bde32349012f2 (patch)
tree8c7d507f974f56eea0ce86e5abb0bac21896cd23 /drivers/staging/most
parent0833ac7db0034b64669ea3fc3dc36d7c9e7905b8 (diff)
downloadlinux-17ac98ac7339bdf867633d788e1bde32349012f2.tar.bz2
staging: most: fix error comparison
device_create() returns ERR_PTR on error, it does not return NULL. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/mostcore/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c
index 09a5a1a1138e..e4797fdb10dd 100644
--- a/drivers/staging/most/mostcore/core.c
+++ b/drivers/staging/most/mostcore/core.c
@@ -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 =