From: Sudip Mukherjee Date: Mon, 13 Jul 2015 12:02:27 +0000 (+0530) Subject: char: misc: remove redundant ifdef X-Git-Tag: next-20150824~20^2~122 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=344e62b36d3fa680ffbd35ee26b52f7bf4c1c4ec;p=uclinux-h8%2Flinux.git 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: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/misc.c b/drivers/char/misc.c index fdb0f9b3fe45..3b95795cb640 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c @@ -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))