diff mbox

[U-Boot,12/14] arch/powerpc/cpu/mpc86xx/cpu.c: Fix GCC 4.6 build warning

Message ID 1322641077-829-13-git-send-email-wd@denx.de
State Accepted
Commit ad37ef1a85114467cb8749e0ee785c1f9966109b
Headers show

Commit Message

Wolfgang Denk Nov. 30, 2011, 8:17 a.m. UTC
Fix:
cpu.c: In function 'checkcpu':
cpu.c:51:7: warning: variable 'ver' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Kumar Gala <galak@kernel.crashing.org>
---
total: 0 errors, 0 warnings, 21 lines checked
NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE

 arch/powerpc/cpu/mpc86xx/cpu.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Comments

Kumar Gala Nov. 30, 2011, 1:55 p.m. UTC | #1
On Nov 30, 2011, at 2:17 AM, Wolfgang Denk wrote:

> Fix:
> cpu.c: In function 'checkcpu':
> cpu.c:51:7: warning: variable 'ver' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Kumar Gala <galak@kernel.crashing.org>
> ---
> total: 0 errors, 0 warnings, 21 lines checked
> NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE

Acked-by: Kumar Gala <galak@kernel.crashing.org>

- k
Wolfgang Denk Dec. 1, 2011, 11:16 p.m. UTC | #2
Dear Wolfgang Denk,

In message <1322641077-829-13-git-send-email-wd@denx.de> you wrote:
> Fix:
> cpu.c: In function 'checkcpu':
> cpu.c:51:7: warning: variable 'ver' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Kumar Gala <galak@kernel.crashing.org>
> ---
> total: 0 errors, 0 warnings, 21 lines checked
> NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE
> 
>  arch/powerpc/cpu/mpc86xx/cpu.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/arch/powerpc/cpu/mpc86xx/cpu.c b/arch/powerpc/cpu/mpc86xx/cpu.c
index ffcc8e6..d2c8c78 100644
--- a/arch/powerpc/cpu/mpc86xx/cpu.c
+++ b/arch/powerpc/cpu/mpc86xx/cpu.c
@@ -48,7 +48,6 @@  checkcpu(void)
 {
 	sys_info_t sysinfo;
 	uint pvr, svr;
-	uint ver;
 	uint major, minor;
 	char buf1[32], buf2[32];
 	volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
@@ -57,7 +56,6 @@  checkcpu(void)
 	uint msscr0 = mfspr(MSSCR0);
 
 	svr = get_svr();
-	ver = SVR_SOC_VER(svr);
 	major = SVR_MAJ(svr);
 	minor = SVR_MIN(svr);
 
@@ -77,7 +75,6 @@  checkcpu(void)
 	puts("Core:  ");
 
 	pvr = get_pvr();
-	ver = PVR_E600_VER(pvr);
 	major = PVR_E600_MAJ(pvr);
 	minor = PVR_E600_MIN(pvr);