lkml.org 
[lkml]   [2015]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] char: misc: remove redundant ifdef
Date
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>
---
drivers/char/misc.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index fdb0f9b..3b95795 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))
--
1.8.1.2


\
 
 \ /
  Last update: 2015-07-13 14:21    [W:0.025 / U:3.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site