git: 40dd1c9c06eb - main - ext2: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Nov 2021 23:02:37 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=40dd1c9c06ebe8dc7ea082c4bdc79343137a3997
commit 40dd1c9c06ebe8dc7ea082c4bdc79343137a3997
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 22:59:51 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-24 23:02:26 +0000
ext2: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/fs/ext2fs/ext2_extents.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sys/fs/ext2fs/ext2_extents.c b/sys/fs/ext2fs/ext2_extents.c
index 408f1a27ae76..3d393c4b7bbe 100644
--- a/sys/fs/ext2fs/ext2_extents.c
+++ b/sys/fs/ext2fs/ext2_extents.c
@@ -280,11 +280,8 @@ ext4_ext_in_cache(struct inode *ip, daddr_t lbn, struct ext4_extent *ep)
static int
ext4_ext_check_header(struct inode *ip, struct ext4_extent_header *eh)
{
- struct m_ext2fs *fs;
char *error_msg;
- fs = ip->i_e2fs;
-
if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) {
error_msg = "header: invalid magic";
goto corrupted;
@@ -418,14 +415,12 @@ int
ext4_ext_find_extent(struct inode *ip, daddr_t block,
struct ext4_extent_path **ppath)
{
- struct m_ext2fs *fs;
struct ext4_extent_header *eh;
struct ext4_extent_path *path;
struct buf *bp;
uint64_t blk;
int error, depth, i, ppos, alloc;
- fs = ip->i_e2fs;
eh = ext4_ext_inode_header(ip);
depth = ext4_ext_inode_depth(ip);
ppos = 0;
@@ -690,12 +685,9 @@ static int
ext4_ext_insert_index(struct inode *ip, struct ext4_extent_path *path,
uint32_t lblk, e4fs_daddr_t blk)
{
- struct m_ext2fs *fs;
struct ext4_extent_index *idx;
int len;
- fs = ip->i_e2fs;
-
if (lblk == le32toh(path->ep_index->ei_blk)) {
SDT_PROBE2(ext2fs, , trace, extents, 1,
"lblk == index blk => extent corrupted");