Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756788AbcDDU1F (ORCPT ); Mon, 4 Apr 2016 16:27:05 -0400 Received: from mail-yw0-f172.google.com ([209.85.161.172]:34796 "EHLO mail-yw0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756628AbcDDU0t (ORCPT ); Mon, 4 Apr 2016 16:26:49 -0400 From: Martin Brandenburg X-Google-Original-From: Martin Brandenburg To: hubcap@omnibond.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Martin Brandenburg Subject: [PATCH 3/3] orangefs: remove unused variable Date: Mon, 4 Apr 2016 16:26:38 -0400 Message-Id: <1459801598-12757-3-git-send-email-martin@martinbrandenburg.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459801598-12757-1-git-send-email-martin@martinbrandenburg.com> References: <1459801598-12757-1-git-send-email-martin@martinbrandenburg.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 30 From: Martin Brandenburg --- fs/orangefs/dir.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/orangefs/dir.c b/fs/orangefs/dir.c index ba7dec4..324f0af 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) struct dentry *dentry = file->f_path.dentry; struct orangefs_kernel_op_s *new_op = NULL; struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(dentry->d_inode); - int buffer_full = 0; struct orangefs_readdir_response_s readdir_response; void *dents_buf; int i = 0; @@ -350,8 +349,7 @@ get_new_buffer_index: /* * Did we hit the end of the directory? */ - if (readdir_response.token == ORANGEFS_READDIR_END && - !buffer_full) { + if (readdir_response.token == ORANGEFS_READDIR_END) { gossip_debug(GOSSIP_DIR_DEBUG, "End of dir detected; setting ctx->pos to ORANGEFS_READDIR_END.\n"); ctx->pos = ORANGEFS_READDIR_END; -- 2.7.4