Skip to contentSkip to conversation

fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function

PATCH New Ye Bin 1 participant 1 message Jul 14, 2020 VFS

lore
Share & tools
lore

Ye Bin

author
#0 lore raw

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;
      |                      ^~~~~~~~~~~~
---
 fs/nsfs.c | 2 --
 1 file changed, 2 deletions(-)
fs/nsfs.c +0 -2
index 5a7de1ee6df0..543672426fd3 100644
@@ -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