* [PATCH] jffs2: unused variables cleanup in jffs2_lookup and jffs2_readdir
@ 2011-03-22 12:11 Sergey Senozhatsky
2011-03-31 13:58 ` Artem Bityutskiy
0 siblings, 1 reply; 3+ messages in thread
From: Sergey Senozhatsky @ 2011-03-22 12:11 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd, linux-kernel
jffs2: cleanup unused jffs2_sb_info *c variable and JFFS2_SB_INFO call from jffs2_lookup
and jffs2_readdir
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
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 82faddd..4bca6a2 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,
struct nameidata *nd)
{
struct jffs2_inode_info *dir_f;
- struct jffs2_sb_info *c;
struct jffs2_full_dirent *fd = NULL, *fd_list;
uint32_t ino = 0;
struct inode *inode = NULL;
@@ -86,7 +85,6 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
return ERR_PTR(-ENAMETOOLONG);
dir_f = JFFS2_INODE_INFO(dir_i);
- c = JFFS2_SB_INFO(dir_i->i_sb);
mutex_lock(&dir_f->sem);
@@ -119,7 +117,6 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
static int jffs2_readdir(struct file *filp, void *dirent, filldir_t filldir)
{
struct jffs2_inode_info *f;
- struct jffs2_sb_info *c;
struct inode *inode = filp->f_path.dentry->d_inode;
struct jffs2_full_dirent *fd;
unsigned long offset, curofs;
@@ -127,7 +124,6 @@ static int jffs2_readdir(struct file *filp, void *dirent, filldir_t filldir)
D1(printk(KERN_DEBUG "jffs2_readdir() for dir_i #%lu\n", filp->f_path.dentry->d_inode->i_ino));
f = JFFS2_INODE_INFO(inode);
- c = JFFS2_SB_INFO(inode->i_sb);
offset = filp->f_pos;
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] jffs2: unused variables cleanup in jffs2_lookup and jffs2_readdir
2011-03-22 12:11 [PATCH] jffs2: unused variables cleanup in jffs2_lookup and jffs2_readdir Sergey Senozhatsky
@ 2011-03-31 13:58 ` Artem Bityutskiy
2011-03-31 14:17 ` Sergey Senozhatsky
0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2011-03-31 13:58 UTC (permalink / raw)
To: Sergey Senozhatsky; +Cc: linux-mtd, David Woodhouse, linux-kernel
On Tue, 2011-03-22 at 14:11 +0200, Sergey Senozhatsky wrote:
> jffs2: cleanup unused jffs2_sb_info *c variable and JFFS2_SB_INFO call from jffs2_lookup
> and jffs2_readdir
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
I amended the commit message and pushed this to l2-mtd-2.6.git, thanks.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] jffs2: unused variables cleanup in jffs2_lookup and jffs2_readdir
2011-03-31 13:58 ` Artem Bityutskiy
@ 2011-03-31 14:17 ` Sergey Senozhatsky
0 siblings, 0 replies; 3+ messages in thread
From: Sergey Senozhatsky @ 2011-03-31 14:17 UTC (permalink / raw)
To: Artem Bityutskiy; +Cc: linux-mtd, David Woodhouse, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
On (03/31/11 16:58), Artem Bityutskiy wrote:
> On Tue, 2011-03-22 at 14:11 +0200, Sergey Senozhatsky wrote:
> > jffs2: cleanup unused jffs2_sb_info *c variable and JFFS2_SB_INFO call from jffs2_lookup
> > and jffs2_readdir
> >
> > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
>
> I amended the commit message and pushed this to l2-mtd-2.6.git, thanks.
>
Sorry, next time I'll be more accurate.
Thanks,
Sergey
[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-31 14:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 12:11 [PATCH] jffs2: unused variables cleanup in jffs2_lookup and jffs2_readdir Sergey Senozhatsky
2011-03-31 13:58 ` Artem Bityutskiy
2011-03-31 14:17 ` Sergey Senozhatsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox