diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-05-20 09:33:53 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-05-20 09:33:53 +0100 |
commit | 7ae23d20b714160bd08f1d83d0f4aaf3937a56bb (patch) | |
tree | 09253761a023aeb9ad90ff197bb0587c04946cbe /xen/arch/x86/microcode_amd.c | |
parent | b8eb4655dec9e14b9a8ee88dccd697f7c927135f (diff) | |
download | xen-7ae23d20b714160bd08f1d83d0f4aaf3937a56bb.tar.gz xen-7ae23d20b714160bd08f1d83d0f4aaf3937a56bb.tar.bz2 xen-7ae23d20b714160bd08f1d83d0f4aaf3937a56bb.zip |
xen: Remove some initialised but otherwise unused variables.
Fixes the build under gcc-4.6 -Werror=unused-but-set-variable
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'xen/arch/x86/microcode_amd.c')
-rw-r--r-- | xen/arch/x86/microcode_amd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index f90334439a..e1b495fc77 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -164,7 +164,6 @@ static int apply_microcode(int cpu) static int get_next_ucode_from_buffer_amd(void *mc, const void *buf, size_t size, unsigned long *offset) { - struct microcode_header_amd *mc_header; size_t total_size; const uint8_t *bufp = buf; unsigned long off; @@ -182,8 +181,6 @@ static int get_next_ucode_from_buffer_amd(void *mc, const void *buf, return -EINVAL; } - mc_header = (struct microcode_header_amd *)(&bufp[off+8]); - total_size = (unsigned long) (bufp[off+4] + (bufp[off+5] << 8)); printk(KERN_INFO "microcode: size %lu, total_size %lu, offset %ld\n", |