lkml.org 
[lkml]   [2008]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Patch] fs/proc/base.c: remove a useless local variable


Remove a useless variable 'inode' in proc_pident_lookup().

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>


---
diff --git a/fs/proc/base.c b/fs/proc/base.c
index d467760..966603e 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1960,13 +1960,11 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
const struct pid_entry *ents,
unsigned int nents)
{
- struct inode *inode;
struct dentry *error;
struct task_struct *task = get_proc_task(dir);
const struct pid_entry *p, *last;

error = ERR_PTR(-ENOENT);
- inode = NULL;

if (!task)
goto out_no_task;


\
 
 \ /
  Last update: 2008-12-25 12:19    [W:0.208 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site