svn commit: r202977 - head/sys/geom/part

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Jan 25 17:00:21 UTC 2010


Author: trasz
Date: Mon Jan 25 17:00:21 2010
New Revision: 202977
URL: http://svn.freebsd.org/changeset/base/202977

Log:
  Remove unneeded variables.
  
  Found with:	clang

Modified:
  head/sys/geom/part/g_part_bsd.c
  head/sys/geom/part/g_part_vtoc8.c

Modified: head/sys/geom/part/g_part_bsd.c
==============================================================================
--- head/sys/geom/part/g_part_bsd.c	Mon Jan 25 16:58:58 2010	(r202976)
+++ head/sys/geom/part/g_part_bsd.c	Mon Jan 25 17:00:21 2010	(r202977)
@@ -186,7 +186,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;
@@ -195,7 +194,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: head/sys/geom/part/g_part_vtoc8.c
==============================================================================
--- head/sys/geom/part/g_part_vtoc8.c	Mon Jan 25 16:58:58 2010	(r202976)
+++ head/sys/geom/part/g_part_vtoc8.c	Mon Jan 25 17:00:21 2010	(r202977)
@@ -177,7 +177,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;
@@ -185,7 +184,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-head mailing list