* [PATCH] fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function
@ 2020-07-14 12:09 Ye Bin
0 siblings, 0 replies; only message in thread
From: Ye Bin @ 2020-07-14 12:09 UTC (permalink / raw)
To: viro, linux-fsdevel; +Cc: yebin10
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 --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;
--
2.25.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-14 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 12:09 [PATCH] fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function Ye Bin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).