diff mbox series

fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function

Message ID 20200714120912.1000621-1-yebin10@huawei.com (mailing list archive)
State New, archived
Headers show
Series fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function | expand

Commit Message

yebin (H) July 14, 2020, 12:09 p.m. UTC
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 <yebin10@huawei.com>
---
 fs/nsfs.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/nsfs.c b/fs/nsfs.c
index 5a7de1ee6df0..543672426fd3 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -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;