Remove unneeded variables.

Found with:	clang
This commit is contained in:
Edward Tomasz Napierala 2010-01-25 17:00:21 +00:00
parent 1373012510
commit fdf64c5752
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202977
2 changed files with 0 additions and 4 deletions

View file

@ -186,7 +186,6 @@ g_part_bsd_bootcode(struct g_part_table *basetable, struct g_part_parms *gpp)
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 *basetable, struct g_part_parms *gpp)
uint32_t msize, ncyls, secpercyl;
pp = gpp->gpp_provider;
cp = LIST_FIRST(&pp->consumers);
if (pp->sectorsize < sizeof(struct disklabel))
return (ENOSPC);

View file

@ -177,7 +177,6 @@ g_part_vtoc8_add(struct g_part_table *basetable, struct g_part_entry *entry,
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 *basetable, struct g_part_parms *gpp)
uint32_t acyls, ncyls, pcyls;
pp = gpp->gpp_provider;
cp = LIST_FIRST(&pp->consumers);
if (pp->sectorsize < sizeof(struct vtoc8))
return (ENOSPC);