summaryrefslogtreecommitdiff
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 86385bf67c36..bd58410fe86f 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))