diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-07-13 17:32:27 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-27 10:30:47 -0700 |
commit | 344e62b36d3fa680ffbd35ee26b52f7bf4c1c4ec (patch) | |
tree | 9261d959791e0531c9bcb836731fc5e79f9a28e0 /drivers/char | |
parent | cbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f (diff) | |
download | linux-344e62b36d3fa680ffbd35ee26b52f7bf4c1c4ec.tar.gz linux-344e62b36d3fa680ffbd35ee26b52f7bf4c1c4ec.tar.bz2 linux-344e62b36d3fa680ffbd35ee26b52f7bf4c1c4ec.zip |
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 <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/misc.c | 2 |
1 files changed, 0 insertions, 2 deletions
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)) |