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 (accidently) duplicated code - point...



details:   https://anonhg.NetBSD.org/src/rev/acaf2239770b
branches:  trunk
changeset: 331677:acaf2239770b
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Aug 19 06:49:21 2014 +0000

description:
Remove (accidently) duplicated code - pointed out by coverity scan.

diffstat:

 usr.sbin/sysinst/mbr.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 7a62ceaea607 -r acaf2239770b usr.sbin/sysinst/mbr.c
--- a/usr.sbin/sysinst/mbr.c    Tue Aug 19 06:47:15 2014 +0000
+++ b/usr.sbin/sysinst/mbr.c    Tue Aug 19 06:49:21 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbr.c,v 1.2 2014/08/03 16:09:38 martin Exp $ */
+/*     $NetBSD: mbr.c,v 1.3 2014/08/19 06:49:21 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1148,8 +1148,7 @@
 #ifdef BOOTSEL
        if (mbri->mbrb.mbrbs_nametab[opt][0] != 0) {
                int x, y;
-               if (opt >= MBR_PART_COUNT)
-                       opt = 0;
+
                getyx(m->mw, y, x);
                if (x > 52) {
                        x = 52;



Home | Main Index | Thread Index | Old Index