Skip to content

Commit 1fc5305

Browse files
authored
Merge pull request #271 from NOVBobLee/pr_patch
Remove the redundant code
2 parents 3a09a1e + 8c641a2 commit 1fc5305

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/procfs1.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ static int __init procfs1_init(void)
4848
{
4949
our_proc_file = proc_create(procfs_name, 0644, NULL, &proc_file_fops);
5050
if (NULL == our_proc_file) {
51-
proc_remove(our_proc_file);
5251
pr_alert("Error:Could not initialize /proc/%s\n", procfs_name);
5352
return -ENOMEM;
5453
}

0 commit comments

Comments
 (0)