Skip to content

Commit

Permalink
ext4: remove unused local variable "stored" from ext4_readdir(...)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Giedrius Rekasius authored and Theodore Ts'o committed May 27, 2014
1 parent e1ee60f commit aa13d5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ext4/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
unsigned int offset;
int i, stored;
int i;
struct ext4_dir_entry_2 *de;
int err;
struct inode *inode = file_inode(file);
Expand Down Expand Up @@ -133,7 +133,6 @@ static int ext4_readdir(struct file *file, struct dir_context *ctx)
return ret;
}

stored = 0;
offset = ctx->pos & (sb->s_blocksize - 1);

while (ctx->pos < inode->i_size) {
Expand Down

0 comments on commit aa13d5f

Please sign in to comment.