grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] fs/jfs.c: remove unused pos from grub_jfs_read_file()


From: Colin King
Subject: [PATCH 1/5] fs/jfs.c: remove unused pos from grub_jfs_read_file()
Date: Tue, 27 Nov 2012 12:05:50 +0000

From: Colin Ian King <address@hidden>

Remove the unused pos variable from grub_jfs_read_file().

Signed-off-by: Colin Ian King <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]