summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 19:37:21 +0000
committerphk <phk@FreeBSD.org>2003-05-31 19:37:21 +0000
commitdcb3c04301b388aae9b39c664f774b5ac76bbf7c (patch)
treeabd5fc6953b6d37e8e16fbfc680e7a5fc009d1eb /sys/geom
parent557d80921b6fc65a2d8077a8979814bedf1a872f (diff)
downloadFreeBSD-src-dcb3c04301b388aae9b39c664f774b5ac76bbf7c.zip
FreeBSD-src-dcb3c04301b388aae9b39c664f774b5ac76bbf7c.tar.gz
Remove unused variables.
Rename struct h0h0 to g_hh01 in order to make it unique over files. Found by: FlexeLint
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_sunlabel.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/geom/geom_sunlabel.c b/sys/geom/geom_sunlabel.c
index 9403f3d..f37c0dc 100644
--- a/sys/geom/geom_sunlabel.c
+++ b/sys/geom/geom_sunlabel.c
@@ -147,7 +147,7 @@ g_sunlabel_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, stru
}
}
-struct h0h0 {
+struct g_hh01 {
struct g_geom *gp;
struct g_sunlabel_softc *ms;
u_char *label;
@@ -157,7 +157,7 @@ struct h0h0 {
static void
g_sunlabel_callconfig(void *arg, int flag)
{
- struct h0h0 *hp;
+ struct g_hh01 *hp;
hp = arg;
hp->error = g_sunlabel_modify(hp->gp, hp->ms, hp->label);
@@ -174,7 +174,7 @@ g_sunlabel_config(struct gctl_req *req, struct g_geom *gp, const char *verb)
{
u_char *label;
int error, i;
- struct h0h0 h0h0;
+ struct g_hh01 h0h0;
struct g_slicer *gsp;
struct g_consumer *cp;
@@ -232,10 +232,9 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags)
{
struct g_geom *gp;
struct g_consumer *cp;
- int error, npart;
+ int error;
u_char *buf;
struct g_sunlabel_softc *ms;
- off_t mediasize;
struct g_slicer *gsp;
g_trace(G_T_TOPOLOGY, "g_sunlabel_taste(%s,%s)", mp->name, pp->name);
@@ -248,14 +247,12 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags)
return (NULL);
gsp = gp->softc;
gp->dumpconf = g_sunlabel_dumpconf;
- npart = 0;
do {
if (gp->rank != 2 && flags == G_TF_NORMAL)
break;
ms->sectorsize = cp->provider->sectorsize;
if (ms->sectorsize < 512)
break;
- mediasize = cp->provider->mediasize;
g_topology_unlock();
buf = g_read_data(cp, 0, ms->sectorsize, &error);
g_topology_lock();
OpenPOWER on IntegriCloud