mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Remove unneeded variables.
Found with: clang
This commit is contained in:
parent
1373012510
commit
fdf64c5752
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202977
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue