diff options
author | phk <phk@FreeBSD.org> | 2003-04-22 21:24:37 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-22 21:24:37 +0000 |
commit | 5d4dba626422518e9b0e4e90827dcdba2dc93840 (patch) | |
tree | 379c39f03e8c5e4f6f8ee12b75edd9e24cdbc44a | |
parent | 13d95d603f604c5d49f0dca34c7a2ec015bb6a46 (diff) | |
download | FreeBSD-src-5d4dba626422518e9b0e4e90827dcdba2dc93840.zip FreeBSD-src-5d4dba626422518e9b0e4e90827dcdba2dc93840.tar.gz |
We don't need to have a slice->start() function.
-rw-r--r-- | sys/geom/geom_sunlabel.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/geom/geom_sunlabel.c b/sys/geom/geom_sunlabel.c index 8e09362..1bd7627 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; |