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

Commit 344e62b3 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman
Browse files

char: misc: remove redundant ifdef



The check for CONFIG_PROC_FS is not required as the check is being done
in proc_fs.h and incase CONFIG_PROC_FS is not defined then proc_create()
is defined as NULL.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cbfe8fa6
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -282,9 +282,7 @@ static int __init misc_init(void)
{
{
	int err;
	int err;


#ifdef CONFIG_PROC_FS
	proc_create("misc", 0, NULL, &misc_proc_fops);
	proc_create("misc", 0, NULL, &misc_proc_fops);
#endif
	misc_class = class_create(THIS_MODULE, "misc");
	misc_class = class_create(THIS_MODULE, "misc");
	err = PTR_ERR(misc_class);
	err = PTR_ERR(misc_class);
	if (IS_ERR(misc_class))
	if (IS_ERR(misc_class))