From b09d72daf8d5e53673fe4e0b60ce7eff87d052b8 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 22 Apr 2003 21:24:37 +0000 Subject: We don't need to have a slice->start() function. --- sys/geom/geom_sunlabel.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'sys/geom/geom_sunlabel.c') diff --git a/sys/geom/geom_sunlabel.c b/sys/geom/geom_sunlabel.c index 8e09362e7079..1bd7627f4e92 100644 --- a/sys/geom/geom_sunlabel.c +++ b/sys/geom/geom_sunlabel.c @@ -138,19 +138,6 @@ g_sunlabel_hotwrite(void *arg, int flag) g_slice_finish_hot(bp); } -static int -g_sunlabel_start(struct bio *bp) -{ - struct g_geom *gp; - struct g_sunlabel_softc *ms; - struct g_slicer *gsp; - - gp = bp->bio_to->geom; - gsp = gp->softc; - ms = gsp->softc; - return (0); -} - static void g_sunlabel_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) { @@ -182,7 +169,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags) if (flags == G_TF_NORMAL && !strcmp(pp->geom->class->name, SUNLABEL_CLASS_NAME)) return (NULL); - gp = g_slice_new(mp, 8, pp, &cp, &ms, sizeof *ms, g_sunlabel_start); + gp = g_slice_new(mp, 8, pp, &cp, &ms, sizeof *ms, NULL); if (gp == NULL) return (NULL); gsp = gp->softc; -- cgit v1.2.3