git: eb13232e4b2f - main - agp_nvidia: Replace a dummy variable to force a read with a void cast.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 00:30:25 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=eb13232e4b2f03617c309bf5e9c212f8e0e0d9de commit eb13232e4b2f03617c309bf5e9c212f8e0e0d9de Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 00:30:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 00:30:14 +0000 agp_nvidia: Replace a dummy variable to force a read with a void cast. --- sys/dev/agp/agp_nvidia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/agp/agp_nvidia.c b/sys/dev/agp/agp_nvidia.c index aa8df5e06f86..8ea09238ff34 100644 --- a/sys/dev/agp/agp_nvidia.c +++ b/sys/dev/agp/agp_nvidia.c @@ -338,7 +338,7 @@ static void agp_nvidia_flush_tlb (device_t dev) { struct agp_nvidia_softc *sc; - u_int32_t wbc_reg, temp; + u_int32_t wbc_reg; volatile u_int32_t *ag_virtual; int i, pages; @@ -368,9 +368,9 @@ agp_nvidia_flush_tlb (device_t dev) /* Flush TLB entries. */ pages = sc->gatt->ag_entries * sizeof(u_int32_t) / PAGE_SIZE; for(i = 0; i < pages; i++) - temp = ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)]; + (void)ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)]; for(i = 0; i < pages; i++) - temp = ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)]; + (void)ag_virtual[i * PAGE_SIZE / sizeof(u_int32_t)]; } #define SYSCFG 0xC0010010