From: Sudip Mukherjee Date: Sun, 22 Nov 2015 17:00:54 +0000 (+0530) Subject: staging: most: fix error comparison X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17ac98ac7339bdf867633d788e1bde32349012f2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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 =