Commit e56f4981 authored by Martin Brandenburg's avatar Martin Brandenburg Committed by Mike Marshall

orangefs: remove unused variable

Signed-off-by: default avatarMartin Brandenburg <martin@omnibond.com>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 1917a693
...@@ -153,7 +153,6 @@ static int orangefs_readdir(struct file *file, struct dir_context *ctx) ...@@ -153,7 +153,6 @@ static int orangefs_readdir(struct file *file, struct dir_context *ctx)
struct dentry *dentry = file->f_path.dentry; struct dentry *dentry = file->f_path.dentry;
struct orangefs_kernel_op_s *new_op = NULL; struct orangefs_kernel_op_s *new_op = NULL;
struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(dentry->d_inode); struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(dentry->d_inode);
int buffer_full = 0;
struct orangefs_readdir_response_s readdir_response; struct orangefs_readdir_response_s readdir_response;
void *dents_buf; void *dents_buf;
int i = 0; int i = 0;
...@@ -350,8 +349,7 @@ static int orangefs_readdir(struct file *file, struct dir_context *ctx) ...@@ -350,8 +349,7 @@ static int orangefs_readdir(struct file *file, struct dir_context *ctx)
/* /*
* Did we hit the end of the directory? * Did we hit the end of the directory?
*/ */
if (readdir_response.token == ORANGEFS_READDIR_END && if (readdir_response.token == ORANGEFS_READDIR_END) {
!buffer_full) {
gossip_debug(GOSSIP_DIR_DEBUG, gossip_debug(GOSSIP_DIR_DEBUG,
"End of dir detected; setting ctx->pos to ORANGEFS_READDIR_END.\n"); "End of dir detected; setting ctx->pos to ORANGEFS_READDIR_END.\n");
ctx->pos = ORANGEFS_READDIR_END; ctx->pos = ORANGEFS_READDIR_END;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment