git: d966efcc0807 - main - fusefs tests: Remove an unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 May 2022 17:52:31 UTC
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