summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-04-30 22:09:26 +0000
committerpeter <peter@FreeBSD.org>2003-04-30 22:09:26 +0000
commit90868b7f5e6ad3ba52f71789d047878479cff2c8 (patch)
tree0c2c10d0c26123f5aa5ed69f19d4ba304fbe35fe
parent1f9ddc11ba64602b0ac1eee656cad98349c78b17 (diff)
downloadFreeBSD-src-90868b7f5e6ad3ba52f71789d047878479cff2c8.zip
FreeBSD-src-90868b7f5e6ad3ba52f71789d047878479cff2c8.tar.gz
Fix transcription error. Use == NULL, not != NULL. Fortunately this
was harmless.
-rw-r--r--sys/powerpc/aim/machdep.c2
-rw-r--r--sys/powerpc/powerpc/machdep.c2
-rw-r--r--sys/sparc64/sparc64/machdep.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 4bce713..4e91766 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -268,7 +268,7 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp)
if (mdp != NULL) {
preload_metadata = mdp;
kmdp = preload_search_by_type("elf32 kernel");
- if (kmdp != NULL)
+ if (kmdp == NULL)
kmdp = preload_search_by_type("elf kernel");
if (kmdp != NULL) {
boothowto = MD_FETCH(kmdp, MODINFOMD_HOWTO, int);
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c
index 4bce713..4e91766 100644
--- a/sys/powerpc/powerpc/machdep.c
+++ b/sys/powerpc/powerpc/machdep.c
@@ -268,7 +268,7 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp)
if (mdp != NULL) {
preload_metadata = mdp;
kmdp = preload_search_by_type("elf32 kernel");
- if (kmdp != NULL)
+ if (kmdp == NULL)
kmdp = preload_search_by_type("elf kernel");
if (kmdp != NULL) {
boothowto = MD_FETCH(kmdp, MODINFOMD_HOWTO, int);
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index 219da76..3865f03 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -243,7 +243,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec)
if (mdp != NULL) {
preload_metadata = mdp;
kmdp = preload_search_by_type("elf64 kernel");
- if (kmdp != NULL)
+ if (kmdp == NULL)
kmdp = preload_search_by_type("elf kernel");
if (kmdp != NULL) {
boothowto = MD_FETCH(kmdp, MODINFOMD_HOWTO, int);
OpenPOWER on IntegriCloud