From 9b78dfb5bb0598dd35971bffc1932c956b81c84e Mon Sep 17 00:00:00 2001 From: isaki Date: Sat, 12 May 2007 06:28:41 +0000 Subject: [PATCH] Remove a local block for readability. --- sys/arch/x68k/stand/boot/boot.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/sys/arch/x68k/stand/boot/boot.c b/sys/arch/x68k/stand/boot/boot.c index f078efd4fbd0..edd089897f66 100644 --- a/sys/arch/x68k/stand/boot/boot.c +++ b/sys/arch/x68k/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.11 2007/03/04 06:01:07 christos Exp $ */ +/* $NetBSD: boot.c,v 1.12 2007/05/12 06:28:41 isaki Exp $ */ /* * Copyright (c) 2001 Minoura Makoto @@ -104,6 +104,7 @@ doboot(const char *file, int flags) int fd; int dev, unit, part; char *name; + short *p; printf("Starting %s, flags 0x%x\n", file, flags); marks[MARK_START] = 0x100000; @@ -136,18 +137,16 @@ doboot(const char *file, int flags) B_X68K_SCSI_LUN(dev), B_X68K_SCSI_PART(dev) + 'a'); - { - short *p = ((short*) marks[MARK_ENTRY]) - 1; - printf("Kernel Version: 0x%x\n", *p); - if (*p != 0x4e73 && *p != 0) { - /* - * XXX temporary solution; compatibility loader - * must be written. - */ - printf("This kernel is too new to be loaded by " - "this version of /boot.\n"); - return; - } + p = ((short*) marks[MARK_ENTRY]) - 1; + printf("Kernel Version: 0x%x\n", *p); + if (*p != 0x4e73 && *p != 0) { + /* + * XXX temporary solution; compatibility loader + * must be written. + */ + printf("This kernel is too new to be loaded by " + "this version of /boot.\n"); + return; } exec_image(marks[MARK_START], 0, marks[MARK_ENTRY]-marks[MARK_START],