Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2022 17:52:31 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d966efcc0807 - main - fusefs tests: Remove an unused variable.
Message-ID:  <202205131752.24DHqVD0068800@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=d966efcc08071380cf89c46a167d5193043b6752

commit d966efcc08071380cf89c46a167d5193043b6752
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-13 17:52:14 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-05-13 17:52:14 +0000

    fusefs tests: Remove an unused variable.
    
    Reviewed by:            asomers
    Differential revision:  https://reviews.freebsd.org/D35185
    MFC after:              2 weeks
---
 tests/sys/fs/fusefs/bmap.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/sys/fs/fusefs/bmap.cc b/tests/sys/fs/fusefs/bmap.cc
index 91c9c4f85b64..56821f367a82 100644
--- a/tests/sys/fs/fusefs/bmap.cc
+++ b/tests/sys/fs/fusefs/bmap.cc
@@ -190,12 +190,11 @@ TEST_P(BmapEof, eof)
 	const off_t filesize = 2 * m_maxbcachebuf;
 	const ino_t ino = 42;
 	mode_t mode = S_IFREG | 0644;
-	void *contents, *buf;
+	void *buf;
 	int fd;
 	int ngetattrs;
 
 	ngetattrs = GetParam();
-	contents = calloc(1, filesize);
 	FuseTest::expect_lookup(RELPATH, ino, mode, filesize, 1, 0);
 	expect_open(ino, 0, 1);
 	// Depending on ngetattrs, FUSE_READ could be called with either



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205131752.24DHqVD0068800>