x86/microcode: Get rid of find_cpio_data()'s dummy offset arg
The microcode loader doesn't use it and now that that arg has been made optional in find_cpio_data(), get rid of it here. No functionality change. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1465225850-7352-5-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
7557933e6b
commit
852ad5b945
@@ -64,7 +64,6 @@ static struct cpio_data ucode_cpio;
|
||||
static struct cpio_data __init find_ucode_in_initrd(void)
|
||||
{
|
||||
#ifdef CONFIG_BLK_DEV_INITRD
|
||||
long offset = 0;
|
||||
char *path;
|
||||
void *start;
|
||||
size_t size;
|
||||
@@ -92,7 +91,7 @@ static struct cpio_data __init find_ucode_in_initrd(void)
|
||||
size = boot_params.hdr.ramdisk_size;
|
||||
#endif /* !CONFIG_X86_32 */
|
||||
|
||||
return find_cpio_data(path, start, size, &offset);
|
||||
return find_cpio_data(path, start, size, NULL);
|
||||
#else
|
||||
return (struct cpio_data){ NULL, 0, "" };
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user