mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 17:49:23 +00:00
fs/jfs: Clean up redundant code
In grub-core/fs/jfs.c, Coverity spotted redundant code where the pointer diro was being set to 0 and then being overwritten later without being used. Since this is unnecessary, we can remove the code that sets diro to 0. Fixes: CID 428876 Signed-off-by: Alec Brown <alec.r.brown@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
5a311d029f
commit
c8bf758757
1 file changed
-1
@@ -716,7 +716,6 @@ grub_jfs_find_file (struct grub_jfs_data *data, const char *path,
|
|||||||
grub_uint32_t dirino = grub_le_to_cpu32 (data->currinode.inode);
|
grub_uint32_t dirino = grub_le_to_cpu32 (data->currinode.inode);
|
||||||
|
|
||||||
grub_jfs_closedir (diro);
|
grub_jfs_closedir (diro);
|
||||||
diro = 0;
|
|
||||||
|
|
||||||
if (grub_jfs_read_inode (data, ino, &data->currinode))
|
if (grub_jfs_read_inode (data, ino, &data->currinode))
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user