diff options
author | phk <phk@FreeBSD.org> | 2004-02-10 10:54:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-10 10:54:19 +0000 |
commit | 853b4bc47c4be9feb5f50093966ae6abaadcfcee (patch) | |
tree | e3e3d1aff4ff979bbd221e6df840ac926c3f493c /sys/geom/geom_ccd.c | |
parent | 18879fb0df9eb419a9030e9cc9283dadead8e8a2 (diff) | |
download | FreeBSD-src-853b4bc47c4be9feb5f50093966ae6abaadcfcee.zip FreeBSD-src-853b4bc47c4be9feb5f50093966ae6abaadcfcee.tar.gz |
don't call sbuf_clear() right after sbuf_new(), it is not necessary.
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r-- | sys/geom/geom_ccd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index 86385bf..bd58410 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -772,7 +772,6 @@ g_ccd_create(struct gctl_req *req, struct g_class *mp) g_error_provider(pp, 0); sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); - sbuf_clear(sb); sbuf_printf(sb, "ccd%d: %d components ", sc->sc_unit, *nprovider); for (i = 0; i < *nprovider; i++) { sbuf_printf(sb, "%s%s", @@ -823,7 +822,6 @@ g_ccd_list(struct gctl_req *req, struct g_class *mp) up = gctl_get_paraml(req, "unit", sizeof (int)); unit = *up; sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); - sbuf_clear(sb); LIST_FOREACH(gp, &mp->geom, geom) { cs = gp->softc; if (cs == NULL || (unit >= 0 && unit != cs->sc_unit)) |