git: d893d9e94d71 - main - xen/dev: remove write-only variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Nov 2021 21:14:08 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=d893d9e94d71b6bd0a401ebf3d61b13bf89bb315
commit d893d9e94d71b6bd0a401ebf3d61b13bf89bb315
Author: Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2021-10-08 21:43:26 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2021-11-30 21:11:57 +0000
xen/dev: remove write-only variable
This was found while looking for driver_filter_t functions which got the
trap frame from the argument. This particular instance it isn't even
used, so remove now lest someone else get to it first.
Reviewed by: mhorne
---
sys/dev/xen/debug/debug.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sys/dev/xen/debug/debug.c b/sys/dev/xen/debug/debug.c
index ec4585e64c62..c4562c02ed03 100644
--- a/sys/dev/xen/debug/debug.c
+++ b/sys/dev/xen/debug/debug.c
@@ -69,13 +69,11 @@ extern void
stack_capture(struct stack *st, register_t rbp);
static int
-xendebug_filter(void *arg)
+xendebug_filter(void *arg __unused)
{
#if defined(STACK) && defined(DDB)
struct stack st;
- struct trapframe *frame;
- frame = arg;
stack_zero(&st);
stack_save(&st);