Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev remove duplicate variable initializations.
details: https://anonhg.NetBSD.org/src/rev/dd275e9f01ee
branches: trunk
changeset: 339321:dd275e9f01ee
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jul 12 05:57:06 2015 +0000
description:
remove duplicate variable initializations.
diffstat:
sys/dev/dksubr.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r c9a1accdb869 -r dd275e9f01ee sys/dev/dksubr.c
--- a/sys/dev/dksubr.c Sat Jul 11 22:20:20 2015 +0000
+++ b/sys/dev/dksubr.c Sun Jul 12 05:57:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dksubr.c,v 1.64 2015/07/11 09:45:16 mlelstv Exp $ */
+/* $NetBSD: dksubr.c,v 1.65 2015/07/12 05:57:06 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.64 2015/07/11 09:45:16 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.65 2015/07/12 05:57:06 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -116,7 +116,6 @@
dksc->sc_xname, dksc, dev, flags));
mutex_enter(&dk->dk_openlock);
- part = DISKPART(dev);
/*
* If there are wedges, and this is not RAW_PART, then we
@@ -127,8 +126,6 @@
goto done;
}
- pmask = 1 << part;
-
/*
* If we're init'ed and there are no other open partitions then
* update the in-core disklabel.
Home |
Main Index |
Thread Index |
Old Index