diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-12 21:58:58 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-12 21:58:58 +0000 |
commit | 2ad93a4f6b034b18e3be98d1aa71d200da659f6c (patch) | |
tree | 69ee618e1e56b0e80d0178205a0337467cc4a608 /sys/powerpc | |
parent | 9c861e931cbcc0610f61bafe0a54bb41c972271e (diff) | |
download | src-2ad93a4f6b034b18e3be98d1aa71d200da659f6c.tar.gz src-2ad93a4f6b034b18e3be98d1aa71d200da659f6c.zip |
grackle badaddr: Use void casts instead of a dummy variable.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/powermac/grackle.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/powerpc/powermac/grackle.c b/sys/powerpc/powermac/grackle.c index d3eb9ded1736..06b5992e99a0 100644 --- a/sys/powerpc/powermac/grackle.c +++ b/sys/powerpc/powermac/grackle.c @@ -243,7 +243,6 @@ badaddr(void *addr, size_t size) { struct thread *td; jmp_buf env, *oldfaultbuf; - int x; /* Get rid of any stale machine checks that have been waiting. */ __asm __volatile ("sync; isync"); @@ -262,13 +261,13 @@ badaddr(void *addr, size_t size) switch (size) { case 1: - x = *(volatile int8_t *)addr; + (void)*(volatile int8_t *)addr; break; case 2: - x = *(volatile int16_t *)addr; + (void)*(volatile int16_t *)addr; break; case 4: - x = *(volatile int32_t *)addr; + (void)*(volatile int32_t *)addr; break; default: panic("badaddr: invalid size (%zd)", size); |