Date: Mon, 25 Jan 2010 17:00:21 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202977 - head/sys/geom/part Message-ID: <201001251700.o0PH0LkC023326@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001251700.o0PH0LkC023326>