Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/efiboot rows is a uint ... it will alway...
details: https://anonhg.NetBSD.org/src/rev/806bfa5f80a3
branches: trunk
changeset: 821394:806bfa5f80a3
user: roy <roy%NetBSD.org@localhost>
date: Fri Feb 03 16:42:26 2017 +0000
description:
rows is a uint ... it will always be greater than or equal to 0.
diffstat:
sys/arch/i386/stand/efiboot/boot.c | 6 +++---
sys/arch/i386/stand/efiboot/efimemory.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r cbb9c7b85649 -r 806bfa5f80a3 sys/arch/i386/stand/efiboot/boot.c
--- a/sys/arch/i386/stand/efiboot/boot.c Fri Feb 03 16:28:42 2017 +0000
+++ b/sys/arch/i386/stand/efiboot/boot.c Fri Feb 03 16:42:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.1 2017/01/24 11:09:14 nonaka Exp $ */
+/* $NetBSD: boot.c,v 1.2 2017/02/03 16:42:26 roy Exp $ */
/*-
* Copyright (c) 2016 Kimihiro Nonaka <nonaka%netbsd.org@localhost>
@@ -540,7 +540,7 @@
Print(L"%d:%d:%s\n", DevicePathType(dp), DevicePathSubType(dp), path);
FreePool(path);
- if (rows >= 0 && ++row >= rows) {
+ if (++row >= rows) {
row = 0;
Print(L"Press Any Key to continue :");
(void) awaitkey(-1, 0);
@@ -607,7 +607,7 @@
val ? val : L"(null)");
FreePool(val);
- if (rows >= 0 && ++row >= rows) {
+ if (++row >= rows) {
row = 0;
Print(L"Press Any Key to continue :");
(void) awaitkey(-1, 0);
diff -r cbb9c7b85649 -r 806bfa5f80a3 sys/arch/i386/stand/efiboot/efimemory.c
--- a/sys/arch/i386/stand/efiboot/efimemory.c Fri Feb 03 16:28:42 2017 +0000
+++ b/sys/arch/i386/stand/efiboot/efimemory.c Fri Feb 03 16:42:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efimemory.c,v 1.1 2017/01/24 11:09:14 nonaka Exp $ */
+/* $NetBSD: efimemory.c,v 1.2 2017/02/03 16:42:26 roy Exp $ */
/*-
* Copyright (c) 2016 Kimihiro Nonaka <nonaka%netbsd.org@localhost>
@@ -288,7 +288,7 @@
md->Type >= __arraycount(efimemtypes) ?
efimemstr : efimemtypes[md->Type]);
- if (rows >= 0 && ++row >= rows) {
+ if (++row >= rows) {
row = 0;
Print(L"Press Any Key to continue :");
(void) awaitkey(-1, 0);
Home |
Main Index |
Thread Index |
Old Index