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
This commit is contained in:
Eitan Adler 2012-01-20 01:39:16 +00:00
parent 3688cbc221
commit de879bdae9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230360

View File

@ -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) {