Message ID | 20240115035614.26187-1-zeming@nfschina.com |
---|---|
State | New |
Headers | |
Series | proc: proc_sysctl: Optimize proc_sys_fill_cache() variable | |
Commit Message
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index c88854df0b624..cdda684551599 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -683,8 +683,8 @@ static bool proc_sys_fill_cache(struct file *file, struct dentry *child, *dir = file->f_path.dentry; struct inode *inode; struct qstr qname; - ino_t ino = 0; - unsigned type = DT_UNKNOWN; + ino_t ino; + unsigned type; qname.name = table->procname; qname.len = strlen(table->procname);