Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TdJvc-0004Qg-Nr for mharc-grub-devel@gnu.org; Tue, 27 Nov 2012 07:06:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdJvS-000414-VL for grub-devel@gnu.org; Tue, 27 Nov 2012 07:06:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdJvI-0005rK-NI for grub-devel@gnu.org; Tue, 27 Nov 2012 07:06:06 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdJvI-0005rC-HP for grub-devel@gnu.org; Tue, 27 Nov 2012 07:05:56 -0500 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TdJvH-0005m0-MH for grub-devel@gnu.org; Tue, 27 Nov 2012 12:05:55 +0000 From: Colin King To: grub-devel@gnu.org Subject: [PATCH 1/5] fs/jfs.c: remove unused pos from grub_jfs_read_file() Date: Tue, 27 Nov 2012 12:05:50 +0000 Message-Id: <1354017954-17911-2-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1354017954-17911-1-git-send-email-colin.king@canonical.com> References: <1354017954-17911-1-git-send-email-colin.king@canonical.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 91.189.89.112 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 12:06:15 -0000 From: Colin Ian King Remove the unused pos variable from grub_jfs_read_file(). Signed-off-by: Colin Ian King --- fs/jfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/jfs.c b/fs/jfs.c index b73f9bd..88668a3 100644 --- a/fs/jfs.c +++ b/fs/jfs.c @@ -600,7 +600,6 @@ grub_jfs_find_file (struct grub_jfs_data *data, const char *path) char fpath[grub_strlen (path)]; char *name = fpath; char *next; - unsigned int pos = 0; struct grub_jfs_diropen *diro; grub_strncpy (fpath, path, grub_strlen (path) + 1); @@ -663,8 +662,6 @@ grub_jfs_find_file (struct grub_jfs_data *data, const char *path) if (!next) return 0; - pos = 0; - name = next; next = grub_strchr (name, '/'); if (next) -- 1.8.0