git: 8f12d3536c21 - stable/13 - fusefs tests: Remove an unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:40:25 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=8f12d3536c211563929f3d94f7ce00e03e1853b7
commit 8f12d3536c211563929f3d94f7ce00e03e1853b7
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-13 17:52:14 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:35:16 +0000
fusefs tests: Remove an unused variable.
Reviewed by: asomers
Differential revision: https://reviews.freebsd.org/D35185
MFC after: 2 weeks
(cherry picked from commit d966efcc08071380cf89c46a167d5193043b6752)
---
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