x86, amd_ucode: fix coverity issues found in cpu_request_microcode()
authorAravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Fri, 1 Aug 2014 14:47:48 +0000 (16:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Aug 2014 14:47:48 +0000 (16:47 +0200)
commit6784dd6fdc43914e9bf5b080e12c7877d000dffa
tree469fa752677cdd1dbaa06265816964672feacfae
parent400b3bd6426f3334e47f16d55fd42f438d7fe6fa
x86, amd_ucode: fix coverity issues found in cpu_request_microcode()

This patch fixes issues reported by coverity.
 - CID 1229147: dead code
 - CID 1229148: possible resource leak of mc_amd due to goto out statements.

Coverity-IDs: 12291471229148
Reported-by: Andrew Cooper<andrew.cooper3@citrix.com>
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Reviewed-by: Andrew Cooper<andrew.cooper3@citrix.com>
xen/arch/x86/microcode_amd.c