Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 =