From: Simon Glass <sjg@chromium.org>
Date: Thu, 13 Nov 2014 03:27:55 +0000 (-0700)
Subject: x86: Fix a warning with gcc 4.4.4
X-Git-Tag: v2025.01-rc5-pxa1908~14237^2~35
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=6cba6b9209723bde06251bd996fda4ffce705d3f;p=u-boot.git

x86: Fix a warning with gcc 4.4.4

This warning appears even though it seems that the compiler could work it
out. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index a4e639dcf3..358361970f 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -238,6 +238,7 @@ static void identify_cpu(struct cpu_device_id *cpu)
 	int i;
 
 	vendor_name[0] = '\0'; /* Unset */
+	cpu->device = 0; /* fix gcc 4.4.4 warning */
 
 	/* Find the id and vendor_name */
 	if (!has_cpuid()) {