summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorGiedrius Rekasius <giedrius.rekasius@gmail.com>2014-05-27 20:48:55 +0400
committerTheodore Ts'o <tytso@mit.edu>2014-05-27 20:48:55 +0400
commitaa13d5f67c6f5f7718bd9e9b51ce8255f0535d54 (patch)
tree0a8e272c80e3f1e90be8ffe68dceacd62649eeb0 /fs/ext4
parente1ee60fd89670da61b0a4bda59f8ffb2b8abea63 (diff)
downloadlinux-aa13d5f67c6f5f7718bd9e9b51ce8255f0535d54.tar.xz
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c
index d638c57e996e..ef1bed66c14f 100644
--- a/fs/ext4/dir.c
+++ b/fs/ext4/dir.c
@@ -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);
@@ -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) {