Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt remove extra assignment



details:   https://anonhg.NetBSD.org/src/rev/1ea7dc85f95b
branches:  trunk
changeset: 342018:1ea7dc85f95b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 03 01:16:21 2015 +0000

description:
remove extra assignment

diffstat:

 sbin/gpt/resize.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 670eb07a4423 -r 1ea7dc85f95b sbin/gpt/resize.c
--- a/sbin/gpt/resize.c Thu Dec 03 01:07:28 2015 +0000
+++ b/sbin/gpt/resize.c Thu Dec 03 01:16:21 2015 +0000
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: resize.c,v 1.19 2015/12/03 01:07:28 christos Exp $");
+__RCSID("$NetBSD: resize.c,v 1.20 2015/12/03 01:16:21 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -77,8 +77,6 @@
        if ((hdr = gpt_hdr(gpt)) == NULL)
                return -1;
 
-       ent = NULL;
-
        i = entry - 1;
        ent = gpt_ent_primary(gpt, i);
        if (gpt_uuid_is_nil(ent->ent_type)) {



Home | Main Index | Thread Index | Old Index