ext4: remove unused local variable "stored" from ext4_readdir(...)

Remove local variable "stored" from ext4_readdir(...). This variable 
gets initialized but is never used inside the function.

Signed-off-by: Giedrius Rekasius <giedrius.rekasius@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Giedrius Rekasius 2014-05-27 12:48:55 -04:00 committed by Theodore Ts'o
parent e1ee60fd89
commit aa13d5f67c
1 changed files with 1 additions and 2 deletions

View File

@ -105,7 +105,7 @@ int __ext4_check_dir_entry(const char *function, unsigned int line,
static int ext4_readdir(struct file *file, struct dir_context *ctx) static int ext4_readdir(struct file *file, struct dir_context *ctx)
{ {
unsigned int offset; unsigned int offset;
int i, stored; int i;
struct ext4_dir_entry_2 *de; struct ext4_dir_entry_2 *de;
int err; int err;
struct inode *inode = file_inode(file); struct inode *inode = file_inode(file);
@ -133,7 +133,6 @@ static int ext4_readdir(struct file *file, struct dir_context *ctx)
return ret; return ret;
} }
stored = 0;
offset = ctx->pos & (sb->s_blocksize - 1); offset = ctx->pos & (sb->s_blocksize - 1);
while (ctx->pos < inode->i_size) { while (ctx->pos < inode->i_size) {