fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function
PATCH 1/1 fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function
fs/nsfs.c: In function ‘ns_ioctl’:fs/nsfs.c:195:14: warning: unused variable ‘pid_struct’ [-Wunused-variable]
195 | struct pid *pid_struct;
| ^~~~~~~~~~
fs/nsfs.c:194:22: warning: unused variable ‘child_reaper’ [-Wunused-variable]
194 | struct task_struct *child_reaper;
| ^~~~~~~~~~~~Signed-off-by Ye Bin <[email protected]>
--- fs/nsfs.c | 2 -- 1 file changed, 2 deletions(-)
fs/nsfs.c +0 -2
@@ -191,8 +191,6 @@ static long ns_ioctl(struct file *filp, unsigned int ioctl, {struct user_namespace *user_ns;struct pid_namespace *pid_ns; -struct task_struct *child_reaper; -struct pid *pid_struct;pid_t pid;struct ns_common *ns =get_proc_ns (file_inode (filp));uid_t __user *argp;
Signature · 1 line
2.25.4