summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorSudip Mukherjee2015-11-22 18:00:54 +0100
committerGreg Kroah-Hartman2016-02-08 02:34:58 +0100
commit17ac98ac7339bdf867633d788e1bde32349012f2 (patch)
tree8c7d507f974f56eea0ce86e5abb0bac21896cd23 /drivers/staging/most
parentstaging: most: remove 2nd forward declaration of struct most_aim (diff)
downloadkernel-qcow2-linux-17ac98ac7339bdf867633d788e1bde32349012f2.tar.gz
kernel-qcow2-linux-17ac98ac7339bdf867633d788e1bde32349012f2.tar.xz
kernel-qcow2-linux-17ac98ac7339bdf867633d788e1bde32349012f2.zip
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 =