Преглед на файлове

Merge pull request #271 from NOVBobLee/pr_patch

Remove the redundant code
Jim Huang преди 6 месеца
родител
ревизия
1fc5305714
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      examples/procfs1.c

+ 0 - 1
examples/procfs1.c

@@ -48,7 +48,6 @@ static int __init procfs1_init(void)
 {
     our_proc_file = proc_create(procfs_name, 0644, NULL, &proc_file_fops);
     if (NULL == our_proc_file) {
-        proc_remove(our_proc_file);
         pr_alert("Error:Could not initialize /proc/%s\n", procfs_name);
         return -ENOMEM;
     }