aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-04-04 16:26:38 -0400
committerMike Marshall <hubcap@omnibond.com>2016-04-08 15:50:44 -0400
commite56f49814250f4ca4b66ec7d3a71152846761d1b (patch)
tree64dadd6e2a95fac0bab89f38c6dfc29564b18296
parent1917a6932870062778e3099eb432795d45918fc3 (diff)
orangefs: remove unused variable
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
-rw-r--r--fs/orangefs/dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/orangefs/dir.c b/fs/orangefs/dir.c
index ba7dec40771e..324f0af40d7b 100644
--- a/fs/orangefs/dir.c
+++ b/fs/orangefs/dir.c
@@ -153,7 +153,6 @@ static int orangefs_readdir(struct file *file, struct dir_context *ctx)
153 struct dentry *dentry = file->f_path.dentry; 153 struct dentry *dentry = file->f_path.dentry;
154 struct orangefs_kernel_op_s *new_op = NULL; 154 struct orangefs_kernel_op_s *new_op = NULL;
155 struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(dentry->d_inode); 155 struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(dentry->d_inode);
156 int buffer_full = 0;
157 struct orangefs_readdir_response_s readdir_response; 156 struct orangefs_readdir_response_s readdir_response;
158 void *dents_buf; 157 void *dents_buf;
159 int i = 0; 158 int i = 0;
@@ -350,8 +349,7 @@ get_new_buffer_index:
350 /* 349 /*
351 * Did we hit the end of the directory? 350 * Did we hit the end of the directory?
352 */ 351 */
353 if (readdir_response.token == ORANGEFS_READDIR_END && 352 if (readdir_response.token == ORANGEFS_READDIR_END) {
354 !buffer_full) {
355 gossip_debug(GOSSIP_DIR_DEBUG, 353 gossip_debug(GOSSIP_DIR_DEBUG,
356 "End of dir detected; setting ctx->pos to ORANGEFS_READDIR_END.\n"); 354 "End of dir detected; setting ctx->pos to ORANGEFS_READDIR_END.\n");
357 ctx->pos = ORANGEFS_READDIR_END; 355 ctx->pos = ORANGEFS_READDIR_END;