[PATCH] remove duplicate local variable in set_preferred_console

Olaf Hering olh at suse.de
Sun Oct 23 23:30:34 EST 2005


remove duplicate local variable, saves 2 asm instructions.

Signed-off-by: Olaf Hering <olh at suse.de>

 arch/ppc64/kernel/setup.c |    1 -
 1 files changed, 1 deletion(-)

Index: linux-2.6.14-rc5/arch/ppc64/kernel/setup.c
===================================================================
--- linux-2.6.14-rc5.orig/arch/ppc64/kernel/setup.c
+++ linux-2.6.14-rc5/arch/ppc64/kernel/setup.c
@@ -881,7 +881,6 @@ static int __init set_preferred_console(
 
  		if (reg && compat && (strcmp(compat, "hvterm-protocol") == 0)) {
  			/* Host Virtual Serial Interface */
- 			int offset;
  			switch (reg[0]) {
  				case 0x30000000:
  					offset = 0;
-- 
short story of a lazy sysadmin:
 alias appserv=wotan



More information about the Linuxppc64-dev mailing list