Remove a local block for readability.
This commit is contained in:
parent
5b51f6777d
commit
9b78dfb5bb
|
@ -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,8 +137,7 @@ doboot(const char *file, int flags)
|
|||
B_X68K_SCSI_LUN(dev),
|
||||
B_X68K_SCSI_PART(dev) + 'a');
|
||||
|
||||
{
|
||||
short *p = ((short*) marks[MARK_ENTRY]) - 1;
|
||||
p = ((short*) marks[MARK_ENTRY]) - 1;
|
||||
printf("Kernel Version: 0x%x\n", *p);
|
||||
if (*p != 0x4e73 && *p != 0) {
|
||||
/*
|
||||
|
@ -148,7 +148,6 @@ doboot(const char *file, int flags)
|
|||
"this version of /boot.\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
exec_image(marks[MARK_START], 0, marks[MARK_ENTRY]-marks[MARK_START],
|
||||
marks[MARK_END]-marks[MARK_START], dev, flags);
|
||||
|
|
Loading…
Reference in New Issue