From de879bdae9efb8ecf5f9ec8eaa2dba10375e7228 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Fri, 20 Jan 2012 01:39:16 +0000 Subject: [PATCH] Fix warning when compiling with gcc46: error: variable 'flags' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days --- usr.sbin/cpucontrol/via.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/cpucontrol/via.c b/usr.sbin/cpucontrol/via.c index de5e3868eb21..71ae406ed78e 100644 --- a/usr.sbin/cpucontrol/via.c +++ b/usr.sbin/cpucontrol/via.c @@ -82,7 +82,7 @@ via_update(const char *dev, const char *path) unsigned int i; size_t payload_size; via_fw_header_t *fw_header; - uint32_t signature, flags; + uint32_t signature; int32_t revision; void *fw_data; size_t data_size, total_size; @@ -121,7 +121,6 @@ via_update(const char *dev, const char *path) /* * MSR_IA32_PLATFORM_ID contains flag in BCD in bits 52-50. */ - flags = 1 << ((msrargs.data >> 50) & 7); msrargs.msr = MSR_BIOS_SIGN; error = ioctl(devfd, CPUCTL_RDMSR, &msrargs); if (error < 0) {