[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/14] bsd-user: Remove used from TaskState
From: |
Warner Losh |
Subject: |
[PATCH 09/14] bsd-user: Remove used from TaskState |
Date: |
Wed, 22 Sep 2021 00:14:33 -0600 |
The used field of TaskState is write only. Eliminate it.
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/main.c | 1 -
bsd-user/qemu.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 48643eeabc..ee84554854 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -210,7 +210,6 @@ void init_task_state(TaskState *ts)
{
int i;
- ts->used = 1;
ts->first_free = ts->sigqueue_table;
for (i = 0; i < MAX_SIGQUEUE_SIZE - 1; i++) {
ts->sigqueue_table[i].next = &ts->sigqueue_table[i + 1];
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 22fc3a6c30..431c5cfc03 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -92,7 +92,6 @@ typedef struct TaskState {
struct TaskState *next;
struct bsd_binprm *bprm;
- int used; /* non zero if used */
struct image_info *info;
struct emulated_sigtable sigtab[TARGET_NSIG];
--
2.32.0
- Re: [PATCH 02/14] bsd-user/strace.list: Remove support for FreeBSD versions older than 12.0, (continued)
- [PATCH 05/14] bsd-user/errno_defs.h: Add internal error numbers, Warner Losh, 2021/09/22
- [PATCH 07/14] bsd-user/target_os_elf.h: Remove fallback ELF_HWCAP and reorder, Warner Losh, 2021/09/22
- [PATCH 04/14] bsd-user: export get_errno and is_error from syscall.c, Warner Losh, 2021/09/22
- [PATCH 09/14] bsd-user: Remove used from TaskState,
Warner Losh <=
- [PATCH 13/14] bsd-user: Rename sigqueue to qemu_sigqueue, Warner Losh, 2021/09/22
- [PATCH 10/14] bsd-user: Add stop_all_tasks, Warner Losh, 2021/09/22
- [PATCH 11/14] bsd-user/sysarch: Move to using do_freebsd_arch_sysarch interface, Warner Losh, 2021/09/22