|
@@ -1519,7 +1519,7 @@ static int proc_readfd_common(struct file * filp, void * dirent,
|
|
struct dentry *dentry = filp->f_path.dentry;
|
|
struct dentry *dentry = filp->f_path.dentry;
|
|
struct inode *inode = dentry->d_inode;
|
|
struct inode *inode = dentry->d_inode;
|
|
struct task_struct *p = get_proc_task(inode);
|
|
struct task_struct *p = get_proc_task(inode);
|
|
- unsigned int fd, tid, ino;
|
|
|
|
|
|
+ unsigned int fd, ino;
|
|
int retval;
|
|
int retval;
|
|
struct files_struct * files;
|
|
struct files_struct * files;
|
|
struct fdtable *fdt;
|
|
struct fdtable *fdt;
|
|
@@ -1528,7 +1528,6 @@ static int proc_readfd_common(struct file * filp, void * dirent,
|
|
if (!p)
|
|
if (!p)
|
|
goto out_no_task;
|
|
goto out_no_task;
|
|
retval = 0;
|
|
retval = 0;
|
|
- tid = p->pid;
|
|
|
|
|
|
|
|
fd = filp->f_pos;
|
|
fd = filp->f_pos;
|
|
switch (fd) {
|
|
switch (fd) {
|
|
@@ -1763,7 +1762,6 @@ static int proc_pident_readdir(struct file *filp,
|
|
const struct pid_entry *ents, unsigned int nents)
|
|
const struct pid_entry *ents, unsigned int nents)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
- int pid;
|
|
|
|
struct dentry *dentry = filp->f_path.dentry;
|
|
struct dentry *dentry = filp->f_path.dentry;
|
|
struct inode *inode = dentry->d_inode;
|
|
struct inode *inode = dentry->d_inode;
|
|
struct task_struct *task = get_proc_task(inode);
|
|
struct task_struct *task = get_proc_task(inode);
|
|
@@ -1776,7 +1774,6 @@ static int proc_pident_readdir(struct file *filp,
|
|
goto out_no_task;
|
|
goto out_no_task;
|
|
|
|
|
|
ret = 0;
|
|
ret = 0;
|
|
- pid = task->pid;
|
|
|
|
i = filp->f_pos;
|
|
i = filp->f_pos;
|
|
switch (i) {
|
|
switch (i) {
|
|
case 0:
|
|
case 0:
|