Merge pull request #271 from NOVBobLee/pr_patch
Some checks are pending
build-deploy-assets / build (push) Waiting to run
deploy-github-page / build (push) Waiting to run
status-checks / validate (push) Waiting to run

Remove the redundant code
This commit is contained in:
Jim Huang 2024-10-06 21:20:39 +08:00 committed by GitHub
commit 1fc5305714
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}