[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] fs/jfs.c: Clean up redundant code
From: |
Alec Brown |
Subject: |
[PATCH 1/3] fs/jfs.c: Clean up redundant code |
Date: |
Sat, 20 Jan 2024 02:52:49 +0000 |
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>
---
grub-core/fs/jfs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/grub-core/fs/jfs.c b/grub-core/fs/jfs.c
index 6f7c43904..62e20ef6f 100644
--- a/grub-core/fs/jfs.c
+++ b/grub-core/fs/jfs.c
@@ -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_jfs_closedir (diro);
- diro = 0;
if (grub_jfs_read_inode (data, ino, &data->currinode))
break;
--
2.27.0