char: misc: remove redundant ifdef
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 13 Jul 2015 12:02:27 +0000 (17:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jul 2015 17:30:47 +0000 (10:30 -0700)
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: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/misc.c

index fdb0f9b3fe4508ab8cc7be9f14b4f775c166460a..3b95795cb640cad01ff8cf742771c9b3fedbf1f1 100644 (file)
@@ -282,9 +282,7 @@ static int __init misc_init(void)
 {
        int err;
 
-#ifdef CONFIG_PROC_FS
        proc_create("misc", 0, NULL, &misc_proc_fops);
-#endif
        misc_class = class_create(THIS_MODULE, "misc");
        err = PTR_ERR(misc_class);
        if (IS_ERR(misc_class))