From: Sudip Mukherjee Date: Sun, 22 Nov 2015 17:00:54 +0000 (+0530) Subject: staging: most: fix error comparison X-Git-Tag: v4.14-rc1~3621^2~1212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17ac98ac7339bdf867633d788e1bde32349012f2;p=platform%2Fkernel%2Flinux-rpi.git staging: most: fix error comparison device_create() returns ERR_PTR on error, it does not return NULL. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c index 09a5a1a..e4797fd 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 =