git: bb7b0674f622 - stable/13 - tmpfs: remove write-only variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Oct 2021 00:45:15 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=bb7b0674f6228c7e5c232b38e1ceaefdf34715ed commit bb7b0674f6228c7e5c232b38e1ceaefdf34715ed Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-10-20 01:54:48 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-10-27 00:24:40 +0000 tmpfs: remove write-only variables (cherry picked from commit 80bca63cf48d0f4f1c6cfc1dace1369947eaaa47) --- sys/fs/tmpfs/tmpfs_subr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index e746a7455860..2aa8891f907d 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -454,7 +454,6 @@ tmpfs_alloc_node(struct mount *mp, struct tmpfs_mount *tmp, enum vtype type, const char *target, dev_t rdev, struct tmpfs_node **node) { struct tmpfs_node *nnode; - vm_object_t obj; char *symlink; char symlink_smr; @@ -566,7 +565,7 @@ tmpfs_alloc_node(struct mount *mp, struct tmpfs_mount *tmp, enum vtype type, break; case VREG: - obj = nnode->tn_reg.tn_aobj = + nnode->tn_reg.tn_aobj = vm_pager_allocate(tmpfs_pager_type, NULL, 0, VM_PROT_DEFAULT, 0, NULL /* XXXKIB - tmpfs needs swap reservation */);