mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 09:02:10 +08:00
Merge pull request #271 from NOVBobLee/pr_patch
Remove the redundant code
This commit is contained in:
commit
1fc5305714
|
@ -48,7 +48,6 @@ static int __init procfs1_init(void)
|
||||||
{
|
{
|
||||||
our_proc_file = proc_create(procfs_name, 0644, NULL, &proc_file_fops);
|
our_proc_file = proc_create(procfs_name, 0644, NULL, &proc_file_fops);
|
||||||
if (NULL == our_proc_file) {
|
if (NULL == our_proc_file) {
|
||||||
proc_remove(our_proc_file);
|
|
||||||
pr_alert("Error:Could not initialize /proc/%s\n", procfs_name);
|
pr_alert("Error:Could not initialize /proc/%s\n", procfs_name);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user