From 36f4a5867f58014f79db219e92b1fa6a9d9e736a Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 19 Aug 2014 06:49:21 +0000 Subject: [PATCH] Remove (accidently) duplicated code - pointed out by coverity scan. --- usr.sbin/sysinst/mbr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/sysinst/mbr.c b/usr.sbin/sysinst/mbr.c index 5dd22ce2c263..2576f17537bf 100644 --- a/usr.sbin/sysinst/mbr.c +++ b/usr.sbin/sysinst/mbr.c @@ -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 @@ set_mbr_label(menudesc *m, int opt, void *arg) #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;