diff options
| author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2011-03-22 08:11:02 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-05-24 20:47:39 -0400 |
| commit | 8cb2a180abfa7b677c63cddfb21df9cefb27fe2d (patch) | |
| tree | 1282c6b780ab78cbbbbdd8960a3b97dddcc394de | |
| parent | d178e3e88f538323eb483df1563c8edfb71fdb39 (diff) | |
jffs2: remove unused variables
Remove unused 'jffs2_sb_info *c' variable from 'jffs2_lookup()'
and 'jffs2_readdir()'.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
| -rw-r--r-- | fs/jffs2/dir.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c index 82faddd1f321..4bca6a2e5c07 100644 --- a/fs/jffs2/dir.c +++ b/fs/jffs2/dir.c | |||
| @@ -75,7 +75,6 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target, | |||
| 75 | struct nameidata *nd) | 75 | struct nameidata *nd) |
| 76 | { | 76 | { |
| 77 | struct jffs2_inode_info *dir_f; | 77 | struct jffs2_inode_info *dir_f; |
| 78 | struct jffs2_sb_info *c; | ||
| 79 | struct jffs2_full_dirent *fd = NULL, *fd_list; | 78 | struct jffs2_full_dirent *fd = NULL, *fd_list; |
| 80 | uint32_t ino = 0; | 79 | uint32_t ino = 0; |
| 81 | struct inode *inode = NULL; | 80 | struct inode *inode = NULL; |
| @@ -86,7 +85,6 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target, | |||
| 86 | return ERR_PTR(-ENAMETOOLONG); | 85 | return ERR_PTR(-ENAMETOOLONG); |
| 87 | 86 | ||
| 88 | dir_f = JFFS2_INODE_INFO(dir_i); | 87 | dir_f = JFFS2_INODE_INFO(dir_i); |
| 89 | c = JFFS2_SB_INFO(dir_i->i_sb); | ||
| 90 | 88 | ||
| 91 | mutex_lock(&dir_f->sem); | 89 | mutex_lock(&dir_f->sem); |
| 92 | 90 | ||
| @@ -119,7 +117,6 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target, | |||
| 119 | static int jffs2_readdir(struct file *filp, void *dirent, filldir_t filldir) | 117 | static int jffs2_readdir(struct file *filp, void *dirent, filldir_t filldir) |
| 120 | { | 118 | { |
| 121 | struct jffs2_inode_info *f; | 119 | struct jffs2_inode_info *f; |
| 122 | struct jffs2_sb_info *c; | ||
| 123 | struct inode *inode = filp->f_path.dentry->d_inode; | 120 | struct inode *inode = filp->f_path.dentry->d_inode; |
| 124 | struct jffs2_full_dirent *fd; | 121 | struct jffs2_full_dirent *fd; |
| 125 | unsigned long offset, curofs; | 122 | unsigned long offset, curofs; |
| @@ -127,7 +124,6 @@ static int jffs2_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
| 127 | D1(printk(KERN_DEBUG "jffs2_readdir() for dir_i #%lu\n", filp->f_path.dentry->d_inode->i_ino)); | 124 | D1(printk(KERN_DEBUG "jffs2_readdir() for dir_i #%lu\n", filp->f_path.dentry->d_inode->i_ino)); |
| 128 | 125 | ||
| 129 | f = JFFS2_INODE_INFO(inode); | 126 | f = JFFS2_INODE_INFO(inode); |
| 130 | c = JFFS2_SB_INFO(inode->i_sb); | ||
| 131 | 127 | ||
| 132 | offset = filp->f_pos; | 128 | offset = filp->f_pos; |
| 133 | 129 | ||
