Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Remove useless calls to get_ramsize() - ret...



details:   https://anonhg.NetBSD.org/src/rev/0a7e794a8849
branches:  trunk
changeset: 968429:0a7e794a8849
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jan 16 13:56:24 2020 +0000

description:
Remove useless calls to get_ramsize() - return value is ignored and
the function has no side effects.

diffstat:

 usr.sbin/sysinst/install.c |  4 +---
 usr.sbin/sysinst/upgrade.c |  4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r ebdb27935fdc -r 0a7e794a8849 usr.sbin/sysinst/install.c
--- a/usr.sbin/sysinst/install.c        Thu Jan 16 13:37:26 2020 +0000
+++ b/usr.sbin/sysinst/install.c        Thu Jan 16 13:56:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: install.c,v 1.13 2019/11/13 18:57:26 martin Exp $      */
+/*     $NetBSD: install.c,v 1.14 2020/01/16 13:56:24 martin Exp $      */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -155,8 +155,6 @@
 
        memset(&install, 0, sizeof install);
 
-       get_ramsize();
-
        /* Create and mount partitions */
        find_disks_ret = find_disks(msg_string(MSG_install), false);
        if (partman_go == 1) {
diff -r ebdb27935fdc -r 0a7e794a8849 usr.sbin/sysinst/upgrade.c
--- a/usr.sbin/sysinst/upgrade.c        Thu Jan 16 13:37:26 2020 +0000
+++ b/usr.sbin/sysinst/upgrade.c        Thu Jan 16 13:56:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: upgrade.c,v 1.13 2019/08/27 14:11:00 martin Exp $      */
+/*     $NetBSD: upgrade.c,v 1.14 2020/01/16 13:56:24 martin Exp $      */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -62,8 +62,6 @@
        if (!ask_noyes(NULL))
                return;
 
-       get_ramsize();
-
        if (find_disks(msg_string(MSG_upgrade), !root_is_read_only()) < 0)
                return;
 



Home | Main Index | Thread Index | Old Index