Skip to content

Commit 344e62b

Browse files
sudipm-mukherjeegregkh
authored andcommitted
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>
1 parent cbfe8fa commit 344e62b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/char/misc.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ static int __init misc_init(void)
282282
{
283283
int err;
284284

285-
#ifdef CONFIG_PROC_FS
286285
proc_create("misc", 0, NULL, &misc_proc_fops);
287-
#endif
288286
misc_class = class_create(THIS_MODULE, "misc");
289287
err = PTR_ERR(misc_class);
290288
if (IS_ERR(misc_class))

0 commit comments

Comments
 (0)