Skip to content

Commit

Permalink
Merge pull request #271 from NOVBobLee/pr_patch
Browse files Browse the repository at this point in the history
Remove the redundant code
  • Loading branch information
jserv authored Oct 6, 2024
2 parents 3a09a1e + 8c641a2 commit 1fc5305
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/procfs1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1fc5305

Please sign in to comment.