From: Andrew Morton unneeded casts.. Cc: "Eric W. Biederman" Cc: Oleg Nesterov Cc: Paul Menage Cc: Pavel Emelyanov Cc: Sukadev Bhattiprolu Signed-off-by: Andrew Morton --- fs/proc/base.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -puN fs/proc/base.c~pid-namespaces-changes-to-show-virtual-ids-to-user-fix fs/proc/base.c --- a/fs/proc/base.c~pid-namespaces-changes-to-show-virtual-ids-to-user-fix +++ a/fs/proc/base.c @@ -2244,7 +2244,7 @@ struct dentry *proc_pid_lookup(struct in if (tgid == ~0U) goto out; - ns = (struct pid_namespace *)dentry->d_sb->s_fs_info; + ns = dentry->d_sb->s_fs_info; rcu_read_lock(); task = find_task_by_pid_ns(tgid, ns); if (task) @@ -2325,7 +2325,7 @@ int proc_pid_readdir(struct file * filp, goto out; } - ns = (struct pid_namespace *)filp->f_dentry->d_sb->s_fs_info; + ns = filp->f_dentry->d_sb->s_fs_info; tgid = filp->f_pos - TGID_OFFSET; for (task = next_tgid(tgid, ns); task; @@ -2466,7 +2466,7 @@ static struct dentry *proc_task_lookup(s if (tid == ~0U) goto out; - ns = (struct pid_namespace *)dentry->d_sb->s_fs_info; + ns = dentry->d_sb->s_fs_info; rcu_read_lock(); task = find_task_by_pid_ns(tid, ns); if (task) @@ -2609,7 +2609,7 @@ static int proc_task_readdir(struct file /* f_version caches the tgid value that the last readdir call couldn't * return. lseek aka telldir automagically resets f_version to 0. */ - ns = (struct pid_namespace *)filp->f_dentry->d_sb->s_fs_info; + ns = filp->f_dentry->d_sb->s_fs_info; tid = (int)filp->f_version; filp->f_version = 0; for (task = first_tid(leader, tid, pos - 2, ns); _