svn commit: r213369 - stable/8/sys/geom/part

Andrey V. Elsukov ae at FreeBSD.org
Sat Oct 2 22:06:08 UTC 2010


Author: ae
Date: Sat Oct  2 22:06:07 2010
New Revision: 213369
URL: http://svn.freebsd.org/changeset/base/213369

Log:
  MFC r202977 (by trasz):
    Remove unneeded variables.
  
  Approved by:	kib (mentor)

Modified:
  stable/8/sys/geom/part/g_part_bsd.c
  stable/8/sys/geom/part/g_part_vtoc8.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/geom/part/g_part_bsd.c
==============================================================================
--- stable/8/sys/geom/part/g_part_bsd.c	Sat Oct  2 21:35:33 2010	(r213368)
+++ stable/8/sys/geom/part/g_part_bsd.c	Sat Oct  2 22:06:07 2010	(r213369)
@@ -189,7 +189,6 @@ g_part_bsd_bootcode(struct g_part_table 
 static int
 g_part_bsd_create(struct g_part_table *basetable, struct g_part_parms *gpp)
 {
-	struct g_consumer *cp;
 	struct g_provider *pp;
 	struct g_part_entry *baseentry;
 	struct g_part_bsd_entry *entry;
@@ -198,7 +197,6 @@ g_part_bsd_create(struct g_part_table *b
 	uint32_t msize, ncyls, secpercyl;
 
 	pp = gpp->gpp_provider;
-	cp = LIST_FIRST(&pp->consumers);
 
 	if (pp->sectorsize < sizeof(struct disklabel))
 		return (ENOSPC);

Modified: stable/8/sys/geom/part/g_part_vtoc8.c
==============================================================================
--- stable/8/sys/geom/part/g_part_vtoc8.c	Sat Oct  2 21:35:33 2010	(r213368)
+++ stable/8/sys/geom/part/g_part_vtoc8.c	Sat Oct  2 22:06:07 2010	(r213369)
@@ -180,7 +180,6 @@ g_part_vtoc8_add(struct g_part_table *ba
 static int
 g_part_vtoc8_create(struct g_part_table *basetable, struct g_part_parms *gpp)
 {
-	struct g_consumer *cp;
 	struct g_provider *pp;
 	struct g_part_entry *entry;
 	struct g_part_vtoc8_table *table;
@@ -188,7 +187,6 @@ g_part_vtoc8_create(struct g_part_table 
 	uint32_t acyls, ncyls, pcyls;
 
 	pp = gpp->gpp_provider;
-	cp = LIST_FIRST(&pp->consumers);
 
 	if (pp->sectorsize < sizeof(struct vtoc8))
 		return (ENOSPC);


More information about the svn-src-stable-8 mailing list